-
Notifications
You must be signed in to change notification settings - Fork 54
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
implement custom modes #57
Comments
Sorry but I have not done this before. If you have a mode that would be generally useful (e.g., a good Rmd mode) it could perhaps be included in Otherwise, if you can find a way to make the mode accessible to |
I proposed a way to work with custom modes in PR #59 |
Ah. Missed this when look at the PR. I'd still like to see a reproducible example so I can try to think through if this is indeed the best way to do something like this |
I made a simple example:
The test file is the fortran mode where only the comment character is adapted (I attached the file here as a zip). I made one tiny change to the code in the PR, you can check this here: link it is on line 127. Let me know if you need anything more. |
Sorry, the code did not come trough the way I wanted:
|
Is there a possibility to include custom made modes within the package?
I noticed that '/inst/www/ace' includes all the available modes for the different languages. I can imagine that if I place my custom mode in here and built the package, it would be accessible by aceEditor().
I am not sure if it would be this simple? If it is, it is still not preferable because it would require to make the package myself. It would be easier to use the CRAN version and for instance reference the mode file in the function.
Could you please advise what possibilities there are?
The text was updated successfully, but these errors were encountered: