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

no syntax highlighting for node/js #371

Open
marktyers opened this issue Nov 26, 2016 · 4 comments
Open

no syntax highlighting for node/js #371

marktyers opened this issue Nov 26, 2016 · 4 comments

Comments

@marktyers
Copy link

I have installed the latest version of slap to edit NodeJS files (.js) but there is absolutely no syntax highlighting. Documentation is sparse but I assumed that the editor would load the correct syntax based on the file extension. This does not happen so how can I force it to load the correct syntax files?
screenshot from 2016-11-26 18-05-30

@dbkaplun
Copy link
Member

That is very strange. Can you pastebin your ~/.slap/slap.log? Sometimes it takes a little time to highlight on slower machines, maybe wait a bit longer?

@marktyers
Copy link
Author

@marktyers
Copy link
Author

marktyers commented Nov 27, 2016

I'm running slap on Ubuntu 16.04 on a Thinkpad T450S with 12 GB RAM and i5 processor. Left the file open for 30 min

@dbkaplun
Copy link
Member

dbkaplun commented Dec 1, 2016

@marktyers,

Can you try adding

util.logger.info(data);

after line#415 to $path_to_slap/node_modules/editor-widget/lib/Editor.js? You can find your $path_to_slap:

$ dirname $(readlink -f $(which slap))

Rerun with slap --logger.level silly <args> and pastebin the result, maybe this will show something else. (This might be easier in #slap on Freenode.)

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

No branches or pull requests

2 participants