-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Ace isn't correctly highlighting R comments #1228
Comments
to use r mode you need to use r mode, like this session.setMode("ace/mode/r");// intead of javascript!
because NaN is higlighted in javascript as well |
I had tried changing it to use "ace/mode/r" but I got no syntax highlighting at all. I was then assuming that Ace was automatically detecting the mode (which, now that I think about it, is dumb). I debugged this a little further and Chrome debug is telling me that I'm getting "access denied" when I try to hit http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/mode-r.js . Pulling that up in my browser returns:
Is there something I'm doing that's wrong? Should I be using a different URL? If this isn't the appropriate area for resolving this tell me where to go. Thanks |
Ah, i see. Version on cloudfront is old and doesn't have, r mode. you can download https://github.com/ajaxorg/ace-builds/ and use ace.js from there |
Thanks for the help. That did it. ----- Original Message -----
|
Glad that it worked. |
I'm using Ace to edit/display R code and it doesn't appear to be correctly highlighting comments; basically it ignores them. It looks like it's correctly highlighting other R constructs (like NaN) so I assume I've set it up correctly. Do you want me to open a bug somewhere?
The code I'm using to build the HTML is as follows (built using Sinatra):
The text was updated successfully, but these errors were encountered: