-
Notifications
You must be signed in to change notification settings - Fork 2
Syntax Highlighting
Mark Junker edited this page Oct 25, 2024
·
1 revision
Allows for a code snippet to be styled according to the language specified.
{code:c#}
using System;
public class HelloWorld
{
public static void Main(params string[]() args)
{
Console.WriteLine("Hello World!");
}
}
{code:c#}
using System;
public class HelloWorld
{
public static void Main(params string[]() args)
{
Console.WriteLine("Hello World!");
}
}
Using "{code:language}"
as shown above.
Language | Notes |
---|---|
aspx c# | Use for code snippets from .aspx, .ascx, .asax, .asmx, .master, and .skin files that have embedded C# code |
aspx vb.net | Use for code snippets from .aspx, .ascx, .asax, .asmx, .master, and .skin files that have embedded VB.NET code |
ashx | Use for code snippets from .ashx files |
c# | Use for C# code snippets |
{"c++"} | Use for {"C++"} code snippets |
vb.net | Use for VB.NET code snippets |
html | Use for HTML code snippets |
sql | Use for SQL code snippets |
java | Use for Java code snippets |
javascript | Use for JavaScript code snippets |
xml | Use for snippets from .xml, .config, .dbml, and .xsd files |
php | Use for PHP code snippets |
css | Use for CSS code snippets |
powershell | Use for Powershell code snippets |