Biscuit
(Biscuit)
28 Novembre 2017, 6:53am
1
VBulletin has NOPARSE tags that stop it from processing any HTML positioned between the tags, within a post.
This allows people to post messages explaining how to do certain markup commands, without it actually resolving the commands in that post.
Is there any way to do this on Discourse?
Use back-ticks to enclose the code.
Or select the text and click the preformatted text button:
So it looks like this:
<strong>This is bold</strong>
7 Mi Piace
Biscuit
(Biscuit)
28 Novembre 2017, 7:28am
3
Thanks @omarfilip . That is exactly what I needed.
Nice and easy to do, once you know how.
Thank you.
1 Mi Piace
pfaffman
(Jay Pfaffman)
28 Novembre 2017, 7:08pm
4
You can also do blocks with sections of triple backticks.
```
<code goes here>
```
You can also make a single line be code by preceding it with 4 spaces.
6 Mi Piace
I recommend indenting by 4 spaces, unless you need syntax color highlighting (e.g. you are posting literal computer source code of some kind like Fortran or HTML).
like this
Just type
space space space space like this
4 Mi Piace
schungx
(Stephen Chung)
29 Novembre 2017, 6:37am
6
Is there a difference between four spaces and fenced code blocks I always thought they are equivalent!
Mostly but the fenced blocks imply source code and colored syntax highlighting.
system
(system)
Chiuso
12 Gennaio 2024, 2:51am
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.