I want to show the syntax in some posts about how to run a shortcode. I mean, something like this [myshortcode] but without running it, is that possible?
If you use double brackets, WordPress will not execute the shortcode but just display it with single brackets. So
[[gallery]] becomes [gallery] in your post.