FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...


v1.0 ContentBox Widgets
A Widget to use that uses the SyntaxHighlighter project to format your code
SyntaxHighlighter URL:
Credit to Tony Garcia as this is mainly based off the Mango Plugin he wrote
Tony Garcia Mango Plugin URL:
ContentBox setting:
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):

as3  (ActionScript3)
bash (Bash)
cf   (ColdFusion)
cpp  (C++)
csharp   (C#)
css  (CSS)
delph  (Delphi)
diff  (Diff, Pascal)
erlang (Erlang)
groovy (Groovy)
java  (Java)
javafx  (JavaFX)
js   (JavaScript, JScript)
perl  (Perl)
php  (PHP)
ps  (PowerShell)
python (Python)
ruby  (Ruby)
scala  (Scala)
sql   (SQL)
text  (Text)
vb  (VB, VB.NET)
Extract to your ContentBox widgets directory in the contentbox-ui module

$ box install cbwidget-syntaxhighlighter

No collaborators yet.
3.67 / 3
  • {{ getFullDate("2011-12-02T22:58:03Z") }}
  • {{ getFullDate("2016-06-10T09:07:16Z") }}
  • 4,355
  • 3,171