Andrey Razumovsky updated CAY-892:
----------------------------------
Attachment: patch-CAY-892-2.txt
I've added Velocity templates highlighing.
For SQL keywords list, things are a bit more complex. I've added a couple words like LIMIT and OFFSET. But note that every DBMS has its own dialect. 'Default' tab should probably handle all keywords. Ideally we could have separate set of keywords for every dialect, but this is no small task to do! BTW, LIMIT and OFFSET work in MySQL and PostgreSQL only [1]. So if you think we really need such smart SQL keyword handling, I can do that but it would take time!
1. http://www.petefreitag.com/item/59.cfm
> CM Usability: JEdit Syntax to all TextAreas
> -------------------------------------------
>
> Key: CAY-892
> URL: https://issues.apache.org/cayenne/browse/CAY-892
> Project: Cayenne
> Issue Type: New Feature
> Components: CayenneModeler GUI
> Reporter: Thomas Bernhard
> Assignee: Kevin Menard
> Attachments: patch-CAY-892-2.txt, patch-CAY-892.txt
>
>
> Please add JEdit Syntax:
> http://sourceforge.net/projects/jedit-syntax
> to all TextAreas that display code (SQL, or other syntaxed text).
> This library is very small, lightweight (it's not the entire JEdit but an old and simple syntax hightligher).
> The inclusion is very simple(just replace TextArea with JEditArea) but the effect is spectaculous:
> everytime I integrated this library the users were euphoric :) - despite the fact that my work was little (just a code line).
> Please not that the library is under MIT license so it should be no compatibility problem.
> After integrating this library it would make sense to take new screenshots for the documentation cause they'll look much better :).
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Mon Aug 25 2008 - 15:33:18 EDT