| Home | Musicality |
| Support | Premake |
| About | |
| Blog |
Allowed HTML tags: <em> <i> <cite> <strong> <b> <del> <a> <blockquote> <pre> <code> <p> <br> <sub> <sup> <ul> <ol> <li>
Syntax highlighting of source code can be enabled with the following tags:
<code>".Options and tips:
bash" (for Bash), "cpp" (for C++), "csharp" (for C#), "java" (for Java), "javascript" (for Javascript), "lua" (for Lua), "php" (for PHP), "python" (for Python), "ruby" (for Ruby), "vbnet" (for vb.net).Defaults:
Examples:
| You type | You get |
|---|---|
<code>foo = "bar";</code> | Inline code with the default syntax highlighting mode. |
<code> | Code block with the default syntax highlighting mode. |
<code lang="csharp" linenumbers="normal"> | Code block with syntax highlighting for C# source code and normal line numbers. |
<code language="csharp" start="23" fancy="7"> | Code block with syntax highlighting for C# source code, line numbers starting from 23 and highlighted line numbers every 7th line. |