Sindbag
Sindbag

Reputation: 353

I'm looking for a syntax highlighter that works on custom language

I want a syntax highlighter which can highlight my own syntax. Words like continue, :i, and loop_to. With the ability to add new words. I thought about AJAX, but maybe you can give me easier way.

Upvotes: 1

Views: 100

Answers (1)

Matt
Matt

Reputation: 23749

GeSHi might be what you're looking for. I've been very happy with it in the past. You can add your own language syntax by creating a language file.

Just plop that somewhere on a PHP-enabled server with your own language file.

Upvotes: 3

Related Questions