30.10.2009 11:42

  1. hiseo

    0 ↑
    0 ↓
    Hi
    there's an issue with CSS.
    Backslash are not printed.
  2. I'm sorry, can you be more specific?

  3. hiseo

    0 ↑
    0 ↓
    Sorry, of course.

    If I use this code:
    code:before {content: "\3C"}
    code:after {content: "\3E"}
    It prints:
    code:before {content: "3C"}
    code:after {content: "3E"}
  4. Which version are you using? As you can see in this very post it works fine:

    code:before {content: "\3C"}
    code:after {content: "\3E"}
    

    If you're using the latest version could you setup a page somewhere that shows the bug? May be it's caused by some other scripts that interfere with highlight.js.

  5. hiseo

    0 ↑
    0 ↓
    Okey, I will.
    As soon as my website will be online (tomorrow I think).
    I'll be back.
    Have a nice day.
  6. hiseo

    0 ↑
    0 ↓
    Sorry to be late.
    The website is now online: http://on-air.hiseo.fr/

    Since our last convers, I tried to fix this issue and, now highlight.js doesn't work anymore.
    This is a page with php code:
    http://on-air.hiseo.fr/fatras/des-microformats-dans-le-blocnotes/
    and, another one with CSS code:
    http://on-air.hiseo.fr/css3/rich-typography-design-et-typo-withavec-css3/

    Some other script is conflicting you think?
  7. This is a page with php code: http://on-air.hiseo.fr/fatras/des-microformats-dans-le-blocnotes/

    This PHP code tries to output HTML tags. But they are not escaped so they end up as real HTML tags in a browser, not part of the PHP code. Escape those "<" and ">" with "<" and ">" and it should be fine.

    and, another one with CSS code: http://on-air.hiseo.fr/css3/rich-typography-design-et-typo-withavec-css3/

    This one actually is highlighted. If you look at it in any DOM inspector (say, Firebug) you would see <span>s with relevant classes. They just need a styling to be visible. You can write your own styles or use any one provided with highlight.js package.

    But here you should be careful because styling will most certainly conflict with your site-wide styling. For example you have a rule for class ".comment" and it is applied to a comment in the CSS code.

  8. hiseo

    0 ↑
    0 ↓
    Hi. Thanks for having replied (what's your fisrt name? Mine is Philippe)
    I'm very sorry: when you saw the page I was applying CSS manually.
    Now I've rolled back in order to see if highlight.js was starting the autodetection, and... nope: it fails.
  9. hiseo

    0 ↑
    0 ↓
    Issues fixed!!!
    I just moved the scripts and reorder them and it just works fine now.
    Thanks a lot pal.
    Philippe
  10. Ok, glad it worked :-)

    My name is Ivan, BTW :-)

  11. hiseo

    0 ↑
    0 ↓
    A short word Ivan:
    I wish you an happy new year.

Внимание! Это довольно старый топик, посты в него не попадут в новые, и их никто не увидит. Пишите пост, если хотите просто дополнить топик, а чтобы задать новый вопрос — начните новый.