Source Code
This shortcode will syntax highlight the source code with the language you set in the lang attribute.
[scode]{content}[/scode]
[scode lang="{language}" gutter="{gutter}" line="{line}" highlight="{lines}"]{content}[/scode]
{language}: programing language to highlight the source code in {content}.{gutter}: show (true) or hide (false) gutter with the line number.{line}: start line number for the highlighted block, if not used, default is1.{lines}: comma separate list of lines to highlight.
The list of supported languages is listed here:
applescript: AppleScriptactionscript3,as3: ActionScript3bash,shell,sh: Bashcoldfusion,cf:ColdFusioncpp,c,cc,c++,h,hpp,h++: Cppc#,c-sharp,csharp: CSharpcss: CSSdelphi,pascal,pas: Delphi or Pascaldiff,patch: Differl,erlang: Erlanggroovy: Groovyhaxe,hx: Haxejava: Javajfx,javafx: JavaFXjs,jscript,javascript,json: JavaScriptperl,pl: Perlphp: PHPtext,plain: Plain Textpowershell,ps,posh: PowerShellpy,python: Pythonruby,rails,ror,rb: Rubysass,scss: SASS or SCSSscala: Scalasql: SQLswift: Apple Swifttap: Taptypescript,ts: Typescriptvb,vbnet: VisalBasicxml,xhtml,xslt,html,plist: XML, HTML
Finally, plugin can show the highlighted content using different color styles, and you can change that via the Feature BBCodes panel.