pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
810 stars 47 forks source link

Atom Code highlighting does not work #98

Open Xiao-HuangShu opened 5 years ago

Xiao-HuangShu commented 5 years ago

Atom Code highlighting does not work I followed the instructions, but it didn't work. QQ截图20190418113534

image

The result is like this

image

I tried "language-pug-jade",“ language-pug” and “atom-pug” but they didn't work.

Atom version: image

Why is this, what should I do?

ezhlobo commented 5 years ago

@Xiao-HuangShu hey, thanks for this issue. I'll provide more details about the underlying problem later, need to recall what happened.

The fix is simple but have to be done by hands.

If you go Atom -> Config..., you will see config.cson file. You need to add one field for core property:

customFileTypes:
  "source.js.jsx": [
    "js"
  ]

This is how it looks in my editor:

2019-04-18 09-30-56
Xiao-HuangShu commented 5 years ago

@ezhlobo It`s worked, thank you very much

narimandev commented 4 years ago

@ezhlobo Using new language-babel I catch an error (see screenshot). customFileTypes does not help. any ideas ?

I am using language-pug, but also it not works for language-jade, language-pug-jade and other analogies. image