What's new? | Help | Directory | Sign in
Google
syntaxhighlighter
Free syntax highlighter written in Java Script
  
  
  
  
    
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 webthink, Aug 23, 2007

<? phpinfo(); ?>

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 heidarymr, Sep 30, 2007

چرا از ASP پشتیبانی نمیکنه؟

Comment by heidarymr, Sep 30, 2007

چرا از ASP پشتیبانی نمیکنه؟

Comment by heidarymr, Sep 30, 2007

چرا از ASP پشتیبانی نمیکنه؟

Comment by heidarymr, Sep 30, 2007

چرا از ASP پشتیبانی نمیکنه؟

Comment by rusu.adrian, Oct 19, 2007

<pre> <?php phpinfo(); ?> </pre>

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 alejandro.rivera.lopez, Nov 01, 2007

&lt;b&gt;Great Job!&lt;/b&gt;

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 patrickespake, Apr 23, 2008

Muito obrigado. Essa ferramenta é ótima, uso muito no meu blog.

--- Thank you very much. This tool is great, much use in my blog.

Patrick Espake patrickespake@gmail.com http://patrickespake.wordpress.com

Comment by claustn, May 07 (4 days ago)

Anyone considering doing something for PowerShell? ?


Sign in to add a comment