20080623 Monday June 23, 2008

Is it possible to replace the syntax parser in Eclipse or IDEA's JSP Plugin? JSP in Eclipse At LinkedIn, we have our own JSP Compiler. Our version of JSP is more like FreeMarker than JSP since it solves many of the deficiencies of JSP. Since we allow a different syntax than standard JSP (more powerful EL, new tags for looping, loading from classpath), we (like FreeMarker) don't get much love from IDEs.

We don't get much in the way of syntax-highlighting or code completion. However, since we use JavaCC/JJTree for parsing, I'm wondering if Eclipse or IDEA (or even NetBeans) allows replacing the default syntax definition with a new one.

Has anyone extended one of these IDEs to enhance its JSP syntax highlighting and compilation? If so, I'd love to hear about it. If not, it's likely we'll be doing it in the near future. Posted in Java at Jun 23 2008, 12:21:36 PM MDT 2 Comments

Comments:

Hi Matt,

I have had wishes for Freemarker support for a long time also in IDEA. Looks like it is coming in version 8.0 which is great!

With regards to your customizing the syntax parser, I came across this page a while back:

http://www.javalobby.org/java/forums/t66413.html

it is a bit dated version-wise, but am sure it might point you in the right direction!

HTH,
Al
P.S. loved the slides + video of your what java framework + smack down on parleys.com - just caught that for the first time this morning! Awesome site.

Posted by Al Power on June 23, 2008 at 02:31 PM MDT #

I am pretty sure you could substitute it Eclipse, but it would require some effort. You could start from looking at JST code and crawl trough, or you can start from scratch. Though if you already have parser and your own compiler, you can also implement your own editor and replace stuff from WTP.

Posted by Eugene Kuleshov on June 23, 2008 at 05:17 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a UI Architect specializing in open source web frameworks. Contact me for rates.
« July 2009
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today

Recent Entries

Tag Cloud