in

NIMTUG

Northern Ireland Microsoft Technologies User Group

Damien McGivern

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


Comments

 

Kidoos said:

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

July 4, 2008 12:28

Leave a Comment

(required)  
(optional)
(required)  
Add

About Damien McGivern

Hi I’m currently the Solutions Architect at Aurion Ltd who specialise in E-Learning solutions, which is based in Belfast. I’m a founding member of NIMTUG and am currently its group coordinator as well as a member or the Irish Microsoft Community Council. I specialised in ASP.Net and MS SQL Server.
NIMTUG 2004-2008
Powered by Community Server (Non-Commercial Edition), by Telligent Systems