star-light
I’m finally releasing my syntax highlighting scripts. I’ve been using them on this site for a few months now. The scripts are highly configurable and so far I’ve been able to create modules for the following languages:
- JavaScript
- HTML
- CSS
- XML
- PHP
One bright spark has created two additional modules:
- VBScript
- T-SQL
Take a look at the sample page before downloading.
star-light has also inspired the creation of another (possibly better) syntax highlighter by James Crompton.
Comments (14)
Leave a comment
Comment: #1
This is a fantastic resource, Dean. Thanks for releasing it.
Comment: #2
Do you use Ultraedit because the colour choices seem awfully reminscent.
Comment: #3
You got me!
http://dean.edwards.name/images/ultraedit.png
Comment: #4
This is a great resource, thanks.
I want to know how to parser multiline text?
Comment: #5
[…] Syntax-Highlighting for Mozilla-Browsers (courtesy of Dean Edwards). […]
Comment: #6
[…] The first approach is to use Dean Edwards’ star-light JavaScript/CSS library. This is a nice piece of client-side JavaScript and CSS that syntax highlights your source code for you, in a variety of languages. All you have to do is enclose it in a tag like <pre class=”javascript”> or <pre class=”php”>. The CSS file (which you also need to reference from your page) takes care of invoking some JavaScript code that scours your page and does the syntax highlighting on the client. […]
Comment: #7
Hi Dean – this looks great! Thanks for releasing this.
Just one thing I was wondering – which license is the code released under? – Andy
Comment: #8
@Andy – the code is under LGPL. If this is a problem let me know as I am slowly changing all my code to MIT license.
Comment: #9
Hi Dean – that’s fine. Thanks!
– Andy
Comment: #10
Hi.
Great script, but the download link seems to be missing and I kinda hacked my way to it: http://deanedwards.googlecode.com/svn/trunk/download/star-light.zip
But it doesn’t look too hidden so I hope it’s OK ;).
Comment: #11
Awesome script. Any plans to release a module for Ruby?
Also, I couldn’t get your example page to work in Safari (3.1). Is this a known issue?
Comment: #12
is a star a light soure?
Comment: #13
[…] Alternative for Syntax highlighter […]
Comment: #14
[…] Домашняя страничка проекта star-light: http://dean.edwards.name/weblog/2005/06/star-light/ […]
Comments are closed.