mattstratton / language-hugo

Hugo syntax highlighting in Atom
https://atom.io/packages/language-hugo
MIT License
18 stars 6 forks source link

Code highlighting does not work after installing the package #17

Open nop33 opened 5 years ago

nop33 commented 5 years ago

I have installed the package but the golang code in my .html files does not get highlighted properly :/

Any idea what might be causing this?

Thanks

image

image

ghost commented 5 years ago

Stopped working for me to some time ago. Somewhere in between an Atom upgrade and Mojave. My next step is to reboot the computer.

DirtyF commented 5 years ago

FWIW Go Template grammar is included in the language-go package.

ghost commented 5 years ago

@DirtyF You just made my day. I had no idea language-go supported HTML (Go) grammar.

Those landing here note to apply the grammar to files with the .html extension (default: .gohtml) open the Grammar Selector with Ctrl+Shift+L and type HTML and select HTML (Go) from the options list:

screen shot 2019-02-09 at 3 21 17 pm

To use HTML (Go) for .html files by default you may need to update your Atom configuration. Here's an example of the highlighting you can expect to see, which used to work with this package:

screen shot 2019-02-09 at 3 32 16 pm