as you can see both HTML are named HTML, i would suggest renaming it to html and html4

http://screensnapr.com/v/gvWeZO.png

Comments

soxofaan’s picture

what version of the GeSHi library are you using?

If you look in the corresponding language definition files in the GeSHi library (e.g. geshi/html4strict.php), what do you see there at the top as "LANG_NAME".
E.g. I only have geshi/html4strict.php, which has:

$language_data = array (
    'LANG_NAME' => 'HTML',
    'COMMENT_SINGLE' => array(),
    'COMMENT_MULTI' => array(),
// ....
marcoka’s picture

GeSHi library version 1.0.8.10 detected

marcoka’s picture

i see @ html4strict.php, same in html5.php

$language_data = array (
    'LANG_NAME' => 'HTML',
    'COMMENT_SINGLE' => array(),
    'COMMENT_MULTI' => array(),
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    'QUOTEMARKS' => array("'", '"'),
    'ESCAPE_CHAR' => '',

ok then it seems to be geshi lib related

DRIVE’s picture

I changed the LANG_NAME in the template for HTML5 but the settings got cached deep in the DB somewhere. No amount of cache clearing or complete uninstalling renamed it. The only way I could get it to show up was to create a new DB in my sandbox and install it... it was only then that instead of having two "HTML"s in the tips or select box (Geshi Field).... otherwise only the site admin will know that the first one is html4 and the second one is html5... Is this a bug or am I misreading something? ... very possible! :)

Also, the html4 one specifiies html4-strict.... any plan for a template that would allow for html4-transitional? Most people that would be using HTML4-strict have probably already moved to XHTML which adds the next question.... any plans for XHTML transitional and strict?? :D

Thanks again for the module. Cant complain about anything this HUGE that we get for free.... had to ask though!

soxofaan’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

This is an issue in the GeSHi library itself, nothing that can/should be fixed in the GeSHi drupal module.
Better direct your questions and patches to the developer of GeSHi: http://sourceforge.net/tracker/?group_id=114997 .

marcoka’s picture

as said, fully agree


ok then it seems to be geshi lib related

yukare’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

As said in #5, this is related to geShi library itself, not this module, so closing this issue.