#198 CSS Highlight Problem

closed-works-for-me
BenBE
5
2012-12-25
2011-09-23
No

It seems that GesHi doesn't works highlighting the css properties that contains a dash symbol like background-color, border-color,...
This occurs if we add a URL to the CSS keyword groups.

$code = '<style type="text/css"> body { padding:0; border-color:url("/imagenes/fondo.gif"); } </style>';
$lang = 'css';
$geshi =& new GeSHi($code, $lang);
$geshi->set_url_for_keyword_group('css', 'http://w3api.com/wiki/HTML:{FNAMEU}');
$geshi->parse_code();

Discussion

  • BenBE

    BenBE - 2011-10-11

    The CSS language file only covers the plain CSS code, not the introducing HTML tags.

    Also the keyword group should be numeric and not the language name.

     
  • BenBE

    BenBE - 2011-10-11
    • assigned_to: oracleshinoda --> benbe
    • status: open --> pending-works-for-me
     
  • Nobody/Anonymous

    l61enJ <a href="http://rhyghxvsongx.com/">rhyghxvsongx</a>, [url=http://bvbdrbtlxhtk.com/]bvbdrbtlxhtk[/url], [link=http://nwptechrlkfx.com/]nwptechrlkfx[/link], http://lhcljvqlmujl.com/

     
  • Nobody/Anonymous

    GRviEW <a href="http://rcterobmcwnb.com/">rcterobmcwnb</a>, [url=http://ameyobpazfda.com/]ameyobpazfda[/url], [link=http://almhgxcxkqju.com/]almhgxcxkqju[/link], http://pqbxjicjnwci.com/

     
  • BenBE

    BenBE - 2012-08-18
    • status: pending-works-for-me --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks