Custom Languages and Regular Expressions in IntelliJ IDEA

As you might recall, IntelliLang plugin had won two awards at the recently held IntelliJ IDEAL Plugin Contest.

IntelliLang extends the support of custom languages and regular expressions in IntelliJ IDEA with:

  • Language Injection Support: IntelliJ IDEA 6.0 can treat String literals, XML text and attributes as fragments of an arbitrary language. IntelliLang lets you use Java annotations or built-in GUI configurator to mark String fields, local variables, method parameters and methods returning Strings as containing code written in a certain language.

    List of Supported Languages

    With IntelliLang you get the proper code completion, highlighting and inspections according to the language you have annotated, for example, a JavaScript code embedded into an XSLT file.

    Example: JavaScript Embedded in an XSLT Stylesheet
  • Pattern Validation: Supports annotations that let check String Java elements for compliance with certain regular expressions. This is really handy when it comes to ensuring that an expression conforms to a certain syntax, for example, a String is a legal Java identifier or a valid printf-like pattern used by java.util.Formatter.

    Code Inspection
  • Regular Expression Support: Adds support for regular expressions to code completion, validation, inspection, quick-fixes and Intention Actions, plus error highlighting.

    Regular Expressions Completion

    Moreover, IntelliLang brings several unique features that make creating and editing regular expressions even easier: completion and validation for character property names (e.g. p{javaJavaIdentifierStart}) combined with validation and navigation for the use of back-references (e.g. 1).

    Checking Back-References

IntelliLang is freeware and available for download at IntelliJ IDEA Plugin Repository
Visit the IntelliLang Support Page for more information about plugin features and usage.

Technorati tags: , ,
This entry was posted in New Features and tagged . Bookmark the permalink.

One Response to Custom Languages and Regular Expressions in IntelliJ IDEA

  1. Ben Galbraith says:

    This… is… awesome! I make frequent use of custom grammars for complex GUI component configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>