A Widget to use that uses the SyntaxHighlighter project to format your code
SyntaxHighlighter URL: http://alexgorbatchev.com/SyntaxHighlighter/
Credit to Tony Garcia as this is mainly based off the Mango Plugin he wrote
Tony Garcia Mango Plugin URL: https://github.com/tony-garcia/SyntaxHighlighter-Mango-Plugin
shLanguages - comma delimited list of languages you want available, defaults to "AS3,ColdFusion,Java,JScript,Plain,Sql,Xml"
shTheme - Theme css file to use for highlighting, defaults to "shThemeDefault.css"
Call the widget and pass it the text you want to format
You designate which language to highlight by using an alias for the language in the opening code tag after a colon. For example,
the alias for ColdFusion code highlighting is "cf":
<cfset message = "This plugin is really cool!!!" />
Here is a list of aliases for all code brushes included in the plugin (also, make sure the brushes you want to use are
selected in the plugin configuration --see above):
diff (Diff, Pascal)
vb (VB, VB.NET)
xml (XML, XHTML, HTML)
Extract to your ContentBox widgets directory in the contentbox-ui module
Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.
||Dec 02 2011 10:58 PM
||Jun 10 2016 09:07 AM