Adding syntax highlighting to Community Server (CS)

Using dp.SyntaxHighlighter you can enable syntax highlighting in Community Server (CS) with just a couple of lines of code

1) Download code from http://www.dreamprojections.com/SyntaxHighlighter/ and save to ~/SyntaxHighlighter in your CS root directory

2) Enable the textarea tags to be included as content in posts update the MarkUp/Html section in the communityserver.config file to include

3) Include the required JavaScript and CSS files by adding the code below to the setting: Administration > Settings > Site Content > Raw Header

4) You can find how to use the SyntaxHighlighter at   http://www.dreamprojections.com/SyntaxHighlighter/Usage.aspx


Published 19 August 2006 20:51 by Damien McGivern

Comments

# Syntax Highlighting on Kidoos

04 July 2008 12:28 by Kidoos

void main() { printf("Hello Kidoos World"); return 0; } Syntax Highlighting started working

Leave a Comment

(required) 
(required) 
(optional)
(required)