Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to install JSX syntax highlights/syles for Notepad++?

I'm using Notepad++ and I just started to learn React js and the JSX syntax extension but not having the styling makes it difficult to read. I'm not sure If I could implement the styles into Notepad++ or even if it's possible to import a JSX pre-processor or plugin. I was looking into installing Babel but I would also have to install NPM and Node js ect. and I'm not sure if that would be the best approach. Or is there a different IDE I should be using?

like image 495
David Avatar asked May 20 '16 00:05

David


1 Answers

I was able to find the answer to my own problem. I was viewing the code in the html language because the js was included in a .html file. When I switch the language to Javascript the styles looked perfectly fine. The first <h2> tag in JSX threw off the rest of the code styles. Beginner's mistake.

like image 115
David Avatar answered Oct 14 '22 07:10

David