mikemol/mwgeshiglue — Issue #4: Allow GET parameters to suppress highlighting and styling.
Author: mikemol
Created: 2012-01-22 05:53:14+00:00
State: open

It should be possible to override highlighting and styling for a code snippets on a page via a GET parameter. This should have the effect of changing the selected 'language' to 'text' (to allow GeSHi to sanify its input for HTML display; no point in allowing XSS attacks), skipping the str_replace which changes \n instances to
, and possibly skipping the preg_replace which removes empty-first-lines. Stuffing the processed output into memcached should also not be skipped.

This could probably be something as simple as &nohighlighting=1, as far as the URL is concerned.