Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    you can use a codegroup within Enlighter v3 or a static title added manually

    Thread Starter worldsdream

    (@worldsdream)

    I have the latest version.

    Can you please tell me how to add it manually. I tried my best with no luck.

    Thank you.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    add a title like h4 above the Enlighter codeblock, insert your title, and maybe applly some additional styles to match the theme

    Thread Starter worldsdream

    (@worldsdream)

    That would not be best practice. Is it possible that we have an option for manual adding code to every codeblock. That would make it the best.

    Can you tell me about the codegroup. Will that give me the language above the codeblock?

    Thank you. I love your work.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    that’s not possible due to the software architecture. dedicated metadata fields (like titles, filesize, url) will become available in the upcoming pro/enterprise editions which will be released this year.

    codegroups can be used to display a single text message above the codeblock – please read the docs: https://github.com/EnlighterJS/Plugin.WordPress/blob/v3/docs/Usage_VisualEditor.md#codegroups

    just use a unique codegroup id for each block

    Thread Starter worldsdream

    (@worldsdream)

    I used the codeblock and it works perfect, for example:

    group1
    CSS

    group2
    HTML

    group3
    CSS

    Works perfect. I hope you keep the codegroup in the next major version, otherwise my hours will be wasted if I need to update the plugin. Because I edited all my posts with the codegroup for each block hehehe.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Great to hear! The features keep the same, just the styling of the codeblocks will change (v4 beta1 is available on GitHub, just try it)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add language code to the box’ is closed to new replies.