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 Brent W, Jan 23, 2015.

  1. Brent W

    Brent W Formerly BamaStangGuy

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

    Brent W Formerly BamaStangGuy

    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. Brent W

    Brent W Formerly BamaStangGuy

  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.
     
    Brent W likes this.

Share This Page