By Aravind Prakash on Thursday, 02 April 2015
Posted in General Issues
Replies 3
Likes 0
Views 582
Votes 0
Hi,

I would like to know how to enable syntax highlighting for code written in EasyDiscuss forum posts. Also, can you direct me to the place where I can add syntax highlighting for other languages ? I want to change the background color and enable syntax highlighting for multiple languages.


class myClass;
endclass


Thanks.
Hello Aravind,

You can find the settings for syntax highlighters in EasyDiscuss under Settings > General > Workflow . You'll see the option "Enable Syntax Highlighting"
·
Thursday, 02 April 2015 02:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks !

So, how can I add syntax highlighting for another language ? Say Verilog/VHDL, etc . I can write one on my own if you can point me to the format used by EasyDiscuss.
I do not see any syntax highlighting for C/php etc even though Enable Syntax Highlighting is enabled.

Like here I am trying something with HTML, I do see the div keyword in pink. But, I don't see the div keyword at all when I post in my forum.

// highlight works
<div>
</div>

// No highlighting
class another;
endclass
·
Thursday, 02 April 2015 03:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Aravind,

You can take a look at prism.js in /media/com_easydiscuss/scripts/prism.js but basically you could use codes like this,


// No highlighting
class another;
endclass


Add "csharp" into the type.
·
Thursday, 02 April 2015 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post