Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atom Code highlighting does not work #98

Open
Xiao-HuangShu opened this issue Apr 18, 2019 · 3 comments
Open

Atom Code highlighting does not work #98

Xiao-HuangShu opened this issue Apr 18, 2019 · 3 comments

Comments

@Xiao-HuangShu
Copy link

Xiao-HuangShu commented Apr 18, 2019

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
Copy link
Member

ezhlobo commented Apr 18, 2019

@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
Copy link
Author

Xiao-HuangShu commented Apr 19, 2019

@ezhlobo
It`s worked, thank you very much

@narimandev
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants