1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Template HTML Syntax Highlighting

Discussion in 'XenForo Questions and Support' started by BamaStangGuy, Jan 23, 2015.

  1. BamaStangGuy

    BamaStangGuy Well-Known Member

    Would it be possible to use highlight_string() within the templates?
     
    Last edited: Jan 23, 2015
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    Bump.. new question related to title. Basically looking to have syntax highlighting within a block of code in a template.
     
  3. NixFifty

    NixFifty Well-Known Member

    You looking for something like this?

    [​IMG]
     
  4. BamaStangGuy

    BamaStangGuy Well-Known Member

  5. NixFifty

    NixFifty Well-Known Member

    In the screenshot above I use a customised copy of this add-on. It uses CodeMirror for syntax highlighting and advanced editor functionality. Not sure if you need something that full blown for what you're doing though.
     
    BamaStangGuy likes this.

Share This Page