Le syntax highlighter est un Extension utilisé par BogEngine. Pour plus d'info sur l'auteur de cette extension aller sur le Blog de l'auteur.
Voici un exemple de ce que produit le syntax hilighter.
001
002
003
004
005
006/// <summary>
007/// Small syntax highlighting extension for BlogEngine.net
008/// </summary>
009[ExtensionAttribute("Syntax highlighting for BlogEngine.net", "0.1", "Alexander Schuc")]
010public class SyntaxHighlightingExtension
011{
012 private IParser htmlParser;
013 private uint codeID = uint.MinValue;
014
015
016
017
018
Il peut traiter les langages suivant:
Langages suportés |
Code |
| ASPX |
aspx aspnet aspx ascx asax ashx |
| C |
c |
| COBOL |
cob |
| ColdFusion |
cfm coldfusion |
| CPP |
cpp c++ |
| C# |
csharp c# cs |
| CSS |
css |
| Eiffel |
e |
| Fortran |
for |
| Haskell |
hs |
| Java |
java |
| JavaScript |
js javascript |
| JScript |
jscript |
| Mercury |
m |
| MSIL |
pe |
| Pascal |
pas |
| Perl |
pl |
| PHP |
php php3 |
| Python |
py |
| Ruby |
ruby |
| SQL |
sql |
| VisualBasic |
vb |
VisualBasicScript
|
vbs |
| XML |
xml html htm |
Pour utiliser le Syntax highlighter dans vos posts il suffit d'ajouter le tag [ code]. Voici quelques exemple:
-
[ code=csharp] your code! [/code ]
- [ code=csharp;ln=on;title] bla bla [/code]
[ code=csharp;A optional title!] your code! [/code ]
- [ code=anyOtherSupportedLanguage] your code! [/code ]
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5