What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated May 11, 2007 by alex.gorbatchev
Labels: Documentation, Featured
Languages  
List of supported languages.

Supported languages

Here's a list of supported languages and their aliases:

Language Aliases
C++ cpp, c, c++
C# c#, c-sharp, csharp
CSS css
Delphi delphi, pascal
Java java
Java Script js, jscript, javascript
PHP php
Python py, python
Ruby rb, ruby, rails, ror
Sql sql
VB vb, vb.net
XML/HTML xml, html, xhtml, xslt

See usage page on how to use aliaces.


Comment by jrguitar21, Aug 23, 2007

is this language list at all extendable? instructions would be nice on how to add a language.

Comment by voodoo81people, Aug 29, 2007

I'm using it on Blogger. I've put the scripts on another site and I refer to them. The code works fine except for that introduces break lines tag <br> instead of putting the code on multiple line,it puts the code on one line and it's awful. What's the problem? thanks. Chris.

Comment by airacle, Aug 29, 2007

good

Comment by engtechnology, Sep 03, 2007

I'd love to see perl support

Comment by btedeschi, Sep 06, 2007

php doesnt seem to work for me

Comment by supp...@amhosting.com, Sep 08, 2007

c-sharp works fine, but using the class sql or Sql does not do anything. Is SQL working?

Comment by supp...@amhosting.com, Sep 08, 2007

c-sharp works fine, but using the class sql or Sql does not do anything. Is SQL working?

Comment by awflasher, Sep 10, 2007

No ActionScript? supported :(

Comment by gthornock, Sep 20, 2007

If you're adding languages, add my vote for Perl support. I'd love to see pf syntax too, but that's probably less common and less likely to happen.

Comment by paddy3118, Oct 25, 2007

(There is a spelling mistake of aliaCes instead of aliaSes in the maintext below the table).

- Paddy.

Comment by nevstokes, Nov 02, 2007

For those hankering after Perl support, here's my first attempt of a language file:

http://nevstokes.com/includes/syntax/scripts/shBrushPerl.js

- Nev

Comment by oli...@kfs.org, Nov 06, 2007

Has anyone worked on a Lua language file?

Comment by fiored, Nov 14, 2007

If you want to get one of the languages other than C-Sharp or XML, you need to include the proper file. For example, if you want PHP, do the following:

<script language="javascript" src="js/shBrushPhp.js"></script>

There is a file for each supported language so you will need to figure out which one you want to include for your language.

Comment by SunFunDev, Dec 28, 2007

Respect! Script is cool! It was not pleasant, that sometimes, lines block each other. Excuse, for my bad English = (

Comment by sigmastar, Jan 24, 2008
Comment by chi3x10, Feb 24, 2008

Is there any chance syntaxhighlighter will support matlab code in the future?

Comment by ryancdavidson, Feb 25, 2008

has someone written an ActionScript? 2.0 or 3.0 brush?

Comment by bboy.mr.freeze, Mar 08, 2008

i coded a script for bash support, the file is here: http://bboy.mr.freeze.googlepages.com/shBrushBash.js

Comment by trungson, Mar 31, 2008

Any plan to speed it up a bit

Comment by frozenandcold, Apr 16, 2008

I second the request for Actionscript 3 support.

Comment by robby.oconnor, Apr 17, 2008

groovy support please? perhaps scala?

Comment by Lee.M1977, Apr 22, 2008

Pretty slick,

Definitely has to have perl and diff support before its ready for prime time.

Would be the only choice IMO if it had those

And div support instead of pre, pre tags are pretty lame (the need to encode the < and > manually is pretty sucky too) and "all" that'd need done is to HTML encode certain entities and safe-fy the white space, like http://search.cpan.org/perldoc?Text::InHTML does.

Comment by claustn, May 07, 2008

Anyone considering doing something for PowerShell? ?

Comment by evoturvey, May 26, 2008

Patch files.. maybe?

Thanks! This is a great tool.

Comment by wbiner, May 29, 2008

Thank you ! This is a great tool ~!

Comment by IO.Relentless, Jun 06, 2008

I am having some real trouble getting it to work with PHP is anyone else? and have they found a solution, it seems to work with every other language. Why not php?

<pre name="code" class="php"> <?php echo "HELP!"; ?> </pre>

Comment by ergosys, Jun 17, 2008

I would love to see objective-c support.

Comment by ffiaux, Jun 26, 2008

Well, i am not sure if i did anything wrong, but i am having problems when i post lists type in Java, like List<Element>. Is that correct, the syntax highlighter does not support it?

Comment by dave.smith.to, Jun 26, 2008

There are other options if you're language is not supported here. If you use emacs , there is an extention to htmlize your code. It should work with and language that has a mode for emacs: http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el

This allows you to generate you're html up-front and paste it in.

Comment by fahd.shariff, Jul 18, 2008

It would be good if Whitespace could be added to the list

Comment by rafeeq.jamal, Jul 19, 2008

voodoo81people:

<br /> are added automatically in Blogger because, by default, it will add them for you.

Set the "Convert line breaks" under Settings -> Formatting to "No".

Comment by gocodealpha, Jul 23, 2008

Um, would you like to add the support for Fortran (what!).

I'm serious. I use programming techniques mainly to solve scientific problems, such as to find the numerical solution for a bizarre equation. Since then, I don't give much attention to OOP, yet. I use Fortran because of it's ability to manipulate external data file directly and generate the output as formatted matrix array.

So, anyone, is there someone have support for Fortran? Thank you, from the bottom of my heart.

p.s. Sorry for the hyperbolic language .. :)

Comment by masteranza, Aug 03, 2008

Please add AS2 and AS3... I beg you...

Comment by cliffr1...@hotmail.com, Aug 12, 2008

Powerscript?

Comment by phrozen10, Aug 16, 2008

I'd like to see some D support, in wouldn't be difficult now that you have c++ and Java in the list, and it would be nice :D

Comment by noesilon, Aug 22, 2008

actionscript?? there are so many blogs out there needing that. bit of a mistery why it is not included!

Comment by terraboss, Aug 27, 2008

Has anyone of you a solution for syntaxhighliting in ObjC ? If so.. please post a download link! THX

Regards.

Comment by alcatrazbr, Sep 26, 2008

Muito bom, estou usando no site de repositório de códigos para desenvolvedores e analistas, server para muitas linguagens PHP, SQL, Delphi, JAVA, JavaScript?, .NET, www.mysafecode.net

Comment by pcnorb, Oct 01, 2008

Thanks for this. I love it!

I've created a brush for DOS batch files, and it can be found here: http://pcnorb.blogspot.com/2008/10/shbrushbatch-for-google.html