This feature request is possibly the most complex of all grails feature requests, but it is also one of the most popular. And so it is worth sizing to see how long this would take to finish and if there are any reasonable milestones along the way that can produce useful results.
I should be able to use the StructuredTextEditor (which is what JSP support uses). This will provide simple highlighting and formatting appropriate for generic xml files.
The real JSP/GSP support comes in with the SourceViewer and the SourceViewerConfiguration, which, in the case of JSP, provides all the language specific tags and Java-based formatting and content assist.
The main question (which I do not have a feel for yet), is in order to implement GSP support, how much JSP functionality can be borrowed and how much needs to be recreated from scratch?
With that in mind, here is a more specific list of features:
- GSP-specific highlighting
- Groovy support inside scripts and expressions. This includes things like:
- syntax highlighting
- content assist
- Content assist for GSP tags
- Content assist for JSP tags
- Ability to add custom tag libraries
- Validation of both xml and groovy
Is there anything I missed?
Given that current support for GSPs is 0, I think it is reasonable to implement a basic GSP editor that has something like the following minimal feature set:
- GSP-specific highlighting (ie - highlighting for a fixed set of gsp and jsp)
- Basic content assist for these tags (ie- Hippie completion for tags and attributes, with no notion of which tags are appropriate in which locations).
- Does not barf on groovy code and maybe supplies simple syntax highlighting