dp.SyntaxHighlighter is a popular Syntax Highlighter engine.
It's use javascript and CSS for syntax highlighter and easy use in every system. But CommunityServer is not allow use <p name="xxx" class="xxx" > in default setting. Have two way use dp.SyntaxHighlighter in CommunityServer.
-
Way 1: Edit CommunityServer.config , change <p dir = "true" /> to <p name="true" class="true" dir = "true" /> in <MakeUp></MakeUp> , and add all javascipt and css in themes.
-
Way 2: Write a CSModule , because CSModule is allow use any HTML.
I wrote a Syntax Highlighter Wrapper CSModule for CommunityServer 2008.5 ( Wiki support )
You just needs add this CSModule in CommunityServer.config , and no require add javascript and css in theme. This CSModule will load needs javascript in page.
Download :
Binary : CommunityServer.SyntaxHighlighterWrapper10.zip