I've made the Syntax Highlighter plugin for Question2Answer. Any volunteers for testing? You can download it here:
http://quanda.pl/download/syntax-highlighter.zip
I need feedback on compatibility with different browsers (in firefox 3.6.13, and IE 8 works fine) and possibly conflicts with other plugins (I haven't found any).
EDIT:
Installation instructions:
-
Download the file and unzip
-
Place unzipped files in /qa-plugin/syntax-highlighter directory of your Q2A site
Usage:
Just wrap your code in one of the following:
[source language='css']code here[/source]
[code language='css']code here[/code]
[sourcecode lang='css']code here[/sourcecode]
[source lang='css']code here[/source]
[code lang='css']code here[/code]
[sourcecode='css']code here[/sourcecode]
[source='css']code here[/source]
[code='css']code here[/code]
[lang='css']code here[/lang]
[css]code here[/css] (or any of the supported language)
Supported languages:
-
as3, actionscript3
-
bash, shell
-
cf, coldfusion
-
c-sharp, csharp
-
cpp, c
-
css
-
delphi, pas, pascal
-
diff, patch
-
erl, erlang
-
groovy
-
js, jscript, javascript
-
java
-
jfx, javafx
-
perl, pl
-
php
-
plain, text
-
ps, powershell
-
py, python
-
rails, ror, ruby
-
scala
-
sql
-
vb, vbnet
-
xml, xhtml, xslt, html, xhtml