Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP syntax highlighting
    primarykey
    data
    text
    <p>I'm searching for a <strong>PHP syntax highlighting engine</strong> that can be customized (i.e. I can provide my <strong>own tokenizers</strong> for new languages) and that can handle several languages <em>simultaneously</em> (i.e. on the same output page). This engine has to work well together with <strong>CSS classes</strong>, i.e. it should format the output by inserting <code>&lt;span&gt;</code> elements that are adorned with <code>class</code> attributes. Bonus points for an extensible schema.</p> <p>I do <em>not</em> search for a client-side syntax highlighting script (JavaScript).</p> <p>So far, I'm stuck with <a href="http://qbnz.com/highlighter/" rel="noreferrer">GeSHi</a>. Unfortunately, GeSHi fails abysmally for several reasons. The main reason is that the different language files define completely different, inconsistent styles. I've worked hours trying to refactor the different language definitions down to a common denominator but since most definition files are in themselves quite bad, I'd finally like to switch.</p> <p>Ideally, I'd like to have an API similar to <a href="http://coderay.rubychan.de/" rel="noreferrer">CodeRay</a>, <a href="http://pygments.org/" rel="noreferrer">Pygments</a> or the JavaScript <a href="http://code.google.com/p/syntaxhighlighter/" rel="noreferrer">dp.SyntaxHighlighter</a>.</p> <h2>Clarification:</h2> <p>I'm looking for a code highlighting software written <em>in</em> PHP, not <em>for</em> PHP (since I need to use it from inside PHP).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload