How to enable [code] feature in the forum?


#1

Hello,

I was using Mybb Forum software and then it was converted to Discourse. The problem with the conversion is that everything went through except for the BLAH BLAH … how do i enable this feature so that all forum posts will display the info.


(Jay Pfaffman) #2

Can you give an example? I can’t understand what you’re talking about.


#3

I have lot of threads that use the
but they the text that is in between the brackets (in the middle) does not show.


(James) #4

Try using this character at the start and end of the code: `

text


(Jeff Atwood) #5

That should work

bleh

[code]bleh[/code]


(Jay Pfaffman) #6

There is a bbcode plugin that might help.

You could try replacing the code blocks with back ticks as described. There is a rake task that will do such replacements.


#7

the bbcode plugin is GitHub - discourse/discourse-bbcode: vBulletin BBCode plugin but i do not know how to install.

i can perhaps do the rake task but i would not know how to begin.


(Sam Saffron) #8