Allows you to highlight language code with your selected brushes in the post. See more for syntax highlighter tokens
Enable Syntax Highlighter : (Default :Unchecked)
Step 1
Navigate to Manage > Administration > Advanced > Syntax Highlighter
- Brushes : (Default: None)
Allows you to select the language brushes use in the article. Available only when enabled syntax highlighter.
- Themes : (Default : Default)
Allows you to select the syntax highlighter theme to apply. Available only when enabled syntax highlighter.
Using Syntax Highlighter is fairly easy. When writing a new post, simply wrap your code sample in the token like following:
[code:language]
Sample Code
Be sure to replace language with your sample code language. Refer to example below for sample C# code
For Example:
1
2
3
4
5
|
private string GetHellWorld()
{
return "Hello World" ;
}
|
Following options are available for language; make sure you have the appropriate brush enabled in settings.
- applescript
- actionscript3
- as3
- bash
- shell
- coldfusion
- cf
- cpp
- c
- c#
- c-sharp
- csharp
- css
- delphi
- pascal
- diff
- patch
- pas
- erl
- erlang
- groovy
- java
- jfx
- javafx
- js
- jscript
- javascript
- perl
- pl
- php
- text
- plain
- py
- python
- ruby
- rails
- ror
- rb
- sass
- scss
- scala
- sql
- vb
- vbnet
- xml
- xhtml
- xslt
- html