- This topic has 3 replies, 2 voices, and was last updated 20 years, 6 months ago by Scott Anderson.
-
AuthorPosts
-
Donald GibbonsMemberSounds like 2.8 has the beginnings of a JavaScript editor — color coding but no syntax checking. I also noticed in the road map an “optional” feature of XSL support for the XML editor — don’t think it made it into 2.8.
My senario: Legacy code (circa 1999-2001) with a lot of JavaScript embedded in HTML and XSL documents. MyEclipse editors don’t like the combination very well (and I’m not convinced it’s good coding practice).
What are the technical difficulties in having an HTML or XSL editor that can recognise embedded JavaScript?
Thanks, Don
Scott AndersonParticipantDon,
The main technical difficulty is that in both scenarios you’re mixing different grammars throughout the file so proper parsing becomes much more difficult. Espcially when you add in that HTML isn’t well-formed. Add to that that writing editors in Eclipse is an intense, involved, and time-consuming process the requires detailed knowledge of several complex frameworks as well as parsing technologies and grammars for all referenced lanugages and you’ll quickly see how the complexity can add up.
Donald GibbonsMemberScott,
Thanks for the response. I wasn’t surprised by the answer, but as they say, “hope springs eternal”. I though it might be possible to key on the <script …></script> tags, toggling to a different grammer while inside.
Probably the best solution is to push most of the JavaScript into separate .js files leaving a minimum of script in the html and xsl documents. That way, each grammer can be edited separately.
By the way, do you have a current status on the xsl support option? Will be seeing that in a future release?
Thanks, Don
P.S. You guys are doing a fantastic job! Thanks for all the effort!
Scott AndersonParticipantDon,
Probably the best solution is to push most of the JavaScript into separate .js files leaving a minimum of script in the html and xsl documents. That way, each grammer can be edited separately.
That’s actually a nice seperation of concerns and what we always try to do, as a general rule. It’s not always completely possible, but it’s a goal.
By the way, do you have a current status on the xsl support option? Will be seeing that in a future release?
You will be seeing it in a future release, I’m just not sure when. Sorry.
P.S. You guys are doing a fantastic job! Thanks for all the effort!
Thanks alot. Sometimes all the feature requests and support threads can get a little overwhelming so it’s nice to get a kudo to pick up the day a bit. 🙂
-
AuthorPosts