pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atom Code highlighting does not work

Xiao-HuangShu opened this issue · comments

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?

@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

@ezhlobo
It`s worked, thank you very much

@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