Folks,
I directly use the jde-mode with JSP pages (instead of multi
mode switching using
mmm-mode etc - which is distracting). However jde font-lock tries to
fontify the non
java code. That looks weird. To improve the situation used the
font-lock-add-keywords
mechanism to take care of some constructs.
(require 'jde)
(font-lock-add-keywords 'jde-mode
'(
("<[_a-zA-Z0-9]+:.*/?>" 0
font-lock-comment-face prepend)
("</[_a-zA-Z0-9]+:.*>" 0
font-lock-comment-face prepend)
("<%@.*%>" 0 font-lock-comment-face prepend)
("<!.*>" 0 font-lock-comment-face prepend)
)
)
Can any elisp regexp guru extends this concept so that only the true
java code
i.e. between tags
<% %>
<%= %>
<%! %>
and may be
<%@page import='package name'%>
(the package name part)
is the only code fontified by jde mode ?
thanks,
sandip