facebook

Embedded JavaScript in HTML, XSL???

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207487 Reply

    Sounds 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

    #207528 Reply

    Scott Anderson
    Participant

    Don,

    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.

    #207549 Reply

    Scott,

    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!

    #207560 Reply

    Scott Anderson
    Participant

    Don,

    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. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Embedded JavaScript in HTML, XSL???

You must be logged in to post in the forum log in