• Resolved hupe13

    (@hupe13)


    I have a documentation for my plugin. I would like to point out a few important words, for example "property" (red color) and "blue" (blue color) on the page I need help with. I solved this with <pre><code>...<span style="color: #d63638">property</span>... <span style="color: #4f94d4">blue</span></code></pre> . But I would like to show this in prismatic style. Is this possible? It doesn’t have to be colors, but bold, cursive or similar would also be fine. Or any other idea.

    Thank you very much.

    The page I need help with: [log in to see the link]

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

    (@specialk)

    No sorry, it’s not something the plugin can do at this time. It may be possible to nest spans and such and then apply style that way (CSS is very flexible), but it is not something I have tried.

    I hope this helps, let me know if I can provide any further information.

    Thread Starter hupe13

    (@hupe13)

    Thank you very much for your answer. I’ll leave it as it is for now.

    Thread Starter hupe13

    (@hupe13)

    I have a solution:

    <pre class="leafext-prismatic"><code class="leafext-prismatic-bg">
    ...<span style="color: #d63638">prop0</span>... <span style="color: #4f94d4">valu0</span> ...
    </code></pre>

    and some css. I’m using the Prism.js library and the Coy theme. It may not be quite right, but it certainly looks better (search for “prop0” and “value0”).

    Plugin Author Jeff Starr

    (@specialk)

    Thank you for sharing your solution, @hupe13. Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Highlight some important words’ is closed to new replies.