facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
407 stars 53 forks source link

Javascript language highlighting not working #64

Closed pydolan closed 5 years ago

pydolan commented 5 years ago

It appears that Javascript highlighting is not working in my markdown files:

screen shot 2019-01-18 at 6 32 11 am

This differs from what one sees in Github (the below using 'javascript' and 'js'):

var s = "JavaScript syntax highlighting";
alert(s);
var s = "JavaScript syntax highlighting";
alert(s);

I'm using v2.2.2 of MarkdownPreview and Sublime v3.1.1 build 3176.
I had the default settings for this plugin, but tried setting them to the following, as well as reinstalling the plugin and restarting Sublime:

{ 
  "github_mode": "gfm", 
  "parser": "github",
  "build_action": "browser",
  "enabled_extensions": [
    "extra", 
    "github", 
    "codehilite(guess_lang=False,pygments_style=github)" 
  ] 
}

Is there something I'm missing?

facelessuser commented 5 years ago

What am I looking at? Are you saying that you don't like that the syntax highlighter isn't showing highlighted text? If so, Markdown Preview doesn't provide a syntax highlighter, you'll have to take that up with whomever provides your Markdown syntax highlighter. Markdown Preview just renders markdown to HTML and shows it in your browser.

pydolan commented 5 years ago

Ah, my bad. I assumed this plugin did the in-editor highlighting. Will close