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

Embedded Code Syntax Highlighting Feature Request #109

Open
wadechandler opened this issue May 17, 2016 · 2 comments
Open

Embedded Code Syntax Highlighting Feature Request #109

wadechandler opened this issue May 17, 2016 · 2 comments

Comments

@wadechandler
Copy link

In NetBeans, there are files which support embedded languages such as JSPs, and I must add I do not know the complexity of embedding syntax and languages within the NB plugin/module APIs, but it would be really nice if I have triple-ticks embedded code, with a language identifier, like:

{
    "ids": ["zero", "or", "more", "ids"]
}

the IDE could show me that code in its syntax highlighting, and too, if it could allow me different formatting options when working inside the back ticks. I haven't gotten into the usability as of yet, but I wanted to start with the base idea, and see if it were possible, and if so, if it would be something willing to be supported in the project; I understand if not, and thanks.

This would be to support https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code

@stengerh
Copy link
Collaborator

I have toyed with this idea myself. At least in my head, I haven't gotten around to test it. Most of the styling APIs in NetBeans are based on MIME type. If the language identifier is a valid file extension it is possible to look up the corresponding MIME type. At least as long as the user has installed a plugin for the corresponding language.

If anyone has experience with language embedding in NetBeans please feel free to share your experience.

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

No branches or pull requests

4 participants