GeSHi / geshi-1.0

Original version of Generic Syntax Highlighter for PHP
http://qbnz.com/highlighter/
GNU General Public License v2.0
168 stars 101 forks source link

Set language with optional file name #93

Closed markseuffert closed 6 years ago

markseuffert commented 7 years ago

Added an optional file name to public function set_language(). After recent API changes in Version 1.0.9.0, it wasn't possible anymore to set a specific language file name. I needed this for Datenstrom Yellow, where the file names follow a different pattern, for example highlight-javascript.php.

Hope you find it useful.

cweiske commented 7 years ago

You're introducing a new parameter in the mid of the parameter list, which breaks backwards compatibility. You have to add it to the end of the current parameter list.

markseuffert commented 7 years ago

Sorry about that, I fixed it.

markseuffert commented 6 years ago

Any plans to merge this or can you suggest an alternative API?