• Resolved davorj4

    (@davorj4)


    So I’ve started using this plugin today. I enabled Enable Line Highlight, but I still don’t see an option where I can specify lines that should be highlighted.

    Specifically, I am using Prism.js and Okaidia theme. WordPress version is 6.8.2.

    Can someone point me to right direction here?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help! The link/resource you mention explains it succinctly:

    Quote:

    ..works on code blocks (<pre><code>) and not for inline code. You specify the lines to be highlighted through the data-line attribute on the <pre> element, in the following simple format:

    • A single number refers to the line with that number
    • Ranges are denoted by two numbers, separated with a hyphen (-)
    • Multiple line numbers or ranges are separated by commas.
    • Whitespace is allowed anywhere and will be stripped off.

    Endquote.

    Let me know where you are getting stuck and I will try to help, thank you!

    Thread Starter davorj4

    (@davorj4)

    Thank you for prompt answer. So I add Prismatic block and copy/paste code and choose language. In order to add that data attribute I need to convert everything to HTML and add it manually?

    Plugin Author Jeff Starr

    (@specialk)

    I’m not sure tbh.. which editor are you using, Block or Classic? Let me know and I will take a closer look.

    Thread Starter davorj4

    (@davorj4)

    Block. But there is no any option to add those data attributes

    Plugin Author Jeff Starr

    (@specialk)

    You are correct, currently to add line numbers it is necessary to edit the block as HTML and add the attribute manually. I will add a note for the next update and try to add another menu item for specifying data-line via the block options. Thanks for bringing this to my attention, let me know if I can provide any further information.

    Plugin Author Jeff Starr

    (@specialk)

    Working on this now.. should have an update within a couple of days. Thank you for your patience.

    Plugin Author Jeff Starr

    (@specialk)

    This feature is added in Prismatic version 3.7.1, available now.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.