• Resolved kpmarcin

    (@kpmarcin)


    Hello,

    I love your plugin! I was looking for the perfect syntax highlighter for few days and this is the one.

    Could you help me with support for bash/shell/shell-session languages? When I type them manually in the class, the syntax is not working (there are no colours).
    On below site I found few additional languages that I would like to use (especially shell-session):
    https://prismjs.com/examples.html

    I found that for prism.js, I would need to include additional components, as mentioned here:
    https://github.com/PrismJS/prism/issues/1332
    Example: import ‘prismjs/components/prism-bash’

    Could you please guide me, how could I do that? I would appreciate a lot.
    As a workaround, I am not using perl language.

    Thank you so much.

    Kind regards,
    Marcin.

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

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

    (@specialk)

    Hi Marcin,

    Glad to help. The plugin includes both Prism.js and Highlight.js, as well as support for the bash language. If the highlighting is not working correctly, there could be a JavaScript error on the page. Otherwise, there may be some bash code snippets that are simple and therefore may not display multiple colors/styles.

    For the “additional components” you mention, I’m not quite sure I understand. If you can clarify or elaborate, I will try to understand and help asap, thank you.

Viewing 1 replies (of 1 total)

The topic ‘How can I add bash/shell/shell-session?’ is closed to new replies.