[Resolved] Using Syntax Highlighting on Sections

Home Forums Support [Resolved] Using Syntax Highlighting on Sections

Home Forums Support Using Syntax Highlighting on Sections

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #124752
    Roberto Enrique

    I’ve been using this plugin for adding syntax highlighting on html editor since a couple of months:

    https://wordpress.org/plugins/html-editor-syntax-highlighter/

    How can i make it work with the sections add-on?

    Thanks in advance.

    #124765
    Tom
    Lead Developer
    Lead Developer

    Hmm – does it add any buttons or anything to the editor? How does it work?

    The Sections start off as textareas and then grab the TinyMCE settings from the default editor, so if the plugin is set up to mesh with the core TinyMCE settings, the Sections should be able to do the same thing.

    Let me know πŸ™‚

    #124771
    Roberto Enrique

    I’m not using TinyMCE at all, it is really annoying when it strips out some html tags if I switch between html/rich text editors so i decided to deactivate it:

    It actually works within normal pages:

    but it does not on sections:

    #125045
    Tom
    Lead Developer
    Lead Developer

    Hmm yea, the editor can be a pain like that.

    Not sure how I would integrate this into Sections – I’ll need to look into how the developer is setting it up and see if I can attach it to the Sections.

    Trouble is, it’s really difficult to duplicate stuff like this. Since the Sections repeat, it makes it very hard to do anything (it was amazingly hard to get the editor to repeat).

    I’ll look into it πŸ™‚

    #125085
    Roberto Enrique

    I think I can live with that. I continue doing copy and paste from my text editor.

    Don’t invest too much time on this, is not that important. Better invest your time on that new menu add-on πŸ˜‰

    Have a great day

    #125091
    Tom
    Lead Developer
    Lead Developer

    It’s almost ready, promise! πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.