You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/31 01:26:48 UTC

[Jakarta-velocity Wiki] Update of "IntelliJSyntaxHighlighting" by DennisLundberg

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-velocity Wiki" for change notification.

The following page has been changed by DennisLundberg:
http://wiki.apache.org/jakarta-velocity/IntelliJSyntaxHighlighting

The comment on the change is:
Add VelocityTemplateLanguage.xml file type configuration

New page:
{{{VelocityTemplateLanguage.xml}}} is a file type configuration
for IntelliJ IDEA (http://www.jetbrains.com/idea/).
It will give you syntax highlighting in .vm files.

Contributed by Dennis Lundberg (dennisl AT apache DOT org).

Put the text below in a file called {{{VelocityTemplateLanguage.xml}}}
and save that file in IDEA's {{{config/filetypes/}}} directory.

'''{{{VelocityTemplateLanguage.xml}}}'''
{{{
<?xml version="1.0" encoding="UTF-8"?>
<filetype binary="false" description="Velocity Template Language" name="Velocity Template Language">
  <highlighting>
    <options>
      <option name="LINE_COMMENT" value="##" />
      <option name="COMMENT_START" value="#*" />
      <option name="COMMENT_END" value="*#" />
      <option name="HEX_PREFIX" value="" />
      <option name="NUM_POSTFIXES" value="" />
      <option name="HAS_BRACES" value="false" />
      <option name="HAS_BRACKETS" value="false" />
      <option name="HAS_PARENS" value="true" />
    </options>
    <keywords ignore_case="false">
      <keyword name="#else" />
      <keyword name="#elseif" />
      <keyword name="#end" />
      <keyword name="#foreach" />
      <keyword name="#if" />
      <keyword name="#include" />
      <keyword name="#macro" />
      <keyword name="#parse" />
      <keyword name="#set" />
      <keyword name="#stop" />
    </keywords>
    <keywords2>
      <keyword name="in" />
    </keywords2>
    <keywords3 />
    <keywords4 />
  </highlighting>
</filetype>
}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org