facebook

2.8 Beta-1 JSP Editor Color Problems [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #207948 Reply

    Hi,

    I am still seeing problems 😥 with the JSP Editor becoming (color) confused with javascript when a function contains “<“. I thought that this was a problem was addressed earlier, but I could not find the thread, so please excuse me if this is redundant 😳 .

    The following is a jsp that I just created. When I look at it using the ME JSP Editor, everthing after the “<” in the javascript function is red until the close script tag. I have been able to minimize it by putting in comments ” <!– –> “, but this is not desired.

    Thank you,

    James

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>

    <script language=”javascript”>

    function maxSize(size, aString)
    {
    if (aString.length <= size)
    {
    return aString;
    }
    return null
    }
    </script>

    <title>MyJsp.jsp</title>

    </head>

    <body>

    </body>
    </html>

    – System Setup ——————————-

    Operating System and version: WindowsXP
    Eclipse version: 2.1.3
    Eclipse build id: 200403101828
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? n
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 1
    MyEclipse version: 2.8 Beta-1
    Eclipse JDK version: 1.4
    Application Server JDK version: 1.4
    Are there any exceptions in the Eclipse log file? no

    – Message Body ——————————-

    #207955 Reply

    Riyad Kalla
    Member

    James,
    This issue was not addressed and there was quite a long thread about exactly what the HTML spec, when dealing with script tags, is. Your solution is the correct way to write scripts inlined in HTML (surrounded with comments).

    #207973 Reply

    🙁 OK, not quite the answer that I was look for, but is there any interest to fix up the jsp editor in future editions so that it doesn’t have this “feature”? 💡

    Thanks,

    James

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: 2.8 Beta-1 JSP Editor Color Problems [Closed]

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