Syntax highlight: Language guessing

madnil's Avatar

madnil

15 Jul, 2015 11:36 AM

I refer to a former discussion (which was already closed). Brett stated:

If no language is specified, Marked (using highlight.js) attempts to guess the language. You can use "nohighlight" as a language to not highlight specific blocks.

I'm using MultiMarkdown. In my opinion a code block without any language definition should not be syntax highlighted. The "nohighlight" certainly works, but clutters up the markdown source.

Brett, please consider an option in the preferences to stop the guessing if no language is defined.

  1. Support Staff 1 Posted by Brett on 15 Jul, 2015 12:06 PM

    Brett's Avatar

    Sorry, this is not an option using highlight.js at this point. You
    either syntax highlight everything, or disable it and highlight nothing.

    Thanks,
    Brett

  2. madnil closed this discussion on 28 Jul, 2015 06:27 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac