• Hi Kevin,

    Really awesome work! Is it possible to have the bash character ($) instead of a line number when selecting the language “Bash”?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Batdorf

    (@kbat82)

    Hey,

    Thanks for the question. I guess I could look into customizing that. Never crossed my mind. For now though you can just override it with some css.

    Just enable line numbers, and add this to your theme’s stylesheet somewhere

    div[class*='code-block-pro']:not(#\x) .line::before {
        content: '$'!important;
    }
    Thread Starter svenv

    (@svenv)

    Thank you!! Will it affect all code blocks or only the bash editor?

    Plugin Author Kevin Batdorf

    (@kbat82)

    Unfortunately I don’t have it set up to add the selected language to the block, but I plan to make that a setting, probably this weekend.

    You can add a class under Advanced Settings though like ‘bash’ and then add it to the selector. This might work:

    div[class*='code-block-pro']:not(#\x).bash .line::before {
        content: '$'!important;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bash instead of line number?’ is closed to new replies.