Syntax Highlighting not working with Nativefier
See original GitHub issuecode-serverversion: v1.32.0-282- OS Version: Mac, server hosted on Ubuntu 18.04.1 LTS
Description
Synatx highlighting for all files does not work with Nativefier (which hosts a browser in an electron app). I’ve had occasional issues using it in the web browser where the syntax highlighting stops working, so this could be related.
Screenshot of console in a working browser window

Screenshot of console in the nativefier app

Steps to Reproduce
- Install Nativefier
npm install nativefier -g - Open vs code server with nativefier
nativefier --ignore-certificate https://xx.xx.xx.xx:portThe files do not have syntax highlighting
This was tested with all relevant looking flags (–insecure, --enable-es3-apis, --ignore-certificate, --flash), but none of them got syntax highlighting to work.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Syntax Highlighting not working with Nativefier #340 - GitHub
Synatx highlighting for all files does not work with Nativefier (which hosts a browser in an electron app). I've had occasional issues using...
Read more >Syntax highlighting not working in MD files for Jekyll?
The syntax highlighter does not seem to be working in Jekyll using the kramdown parser and rouge gem. Quotes also do not show...
Read more >Turning web content into a Linux App.. - Tech Blog
It's an NPM based application which will turn a URL into a Native platform App. Under OpenSuse the install of NPM is. sudo...
Read more >Help getting syntax highlighting working : r/neovim - Reddit
I installed the appropriate lsp's and ts files, but syntax highlighting does not seem to work. I followed several tutorials to no avail....
Read more >Release Notes - Firejail - WordPress.com
In the same time frame, the problem was independently reported by Birk Blechschmidt. Full working exploit code was also provided.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I was having the same problem. What I did was move the auth to Nginx using basic auth, then added a special case to turn it off. Nativefier can then be set with the username & password to auto-login. Now the only thing that escapes auth is the .wasm extension.
I also set the server to --no-auth.
I followed the steps above and syntax highlighting seems to work, unless i am not understanding correctly: