• Post Reply Bookmark Topic Watch Topic
  • New Topic

Anyone here edit JSP in Emacs?  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If so, do you have it set up to highlight EL? Nothing I've come across so far manages this.
 
Bartender
Posts: 19562
90
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid that EL didn't exist last time I did JSP editing in Emacs. Back then I was struggling with getting it to handle scriptlets properly.

I solved the scriptlet problem. I learned not to put logic on my web pages. So no scriptlets.

If you're proficient in ELISP, you might want to dig out the stuff that highlights shell script variables when editing in shell mode. The same general rules for highlighing "${VARIABLE}" expressions should be adaptable to "#{el expressions}".

Unless you're doing free-form EL on a webpage, however, you'll probably have your EL in quotes, and the quote highlighter would normally be given precedence. At that level, even heavyweight IDEs like Eclipse only do a so-so job.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!