Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created July 17, 2012 12:55
Show Gist options
  • Select an option

  • Save jstrachan/3129248 to your computer and use it in GitHub Desktop.

Select an option

Save jstrachan/3129248 to your computer and use it in GitHub Desktop.
add this to your pom.xml
<dependency>
<groupId>com.intellij</groupId>
<artifactId>annotations</artifactId>
<version>9.0.4</version>
<scope>test</scope>
</dependency>
then use the @Language("HTML") annotation...
import org.intellij.lang.annotations.Language;
/**
*/
public class Dummy {
@Language("HTML")
public String foo() {
return "<html></html>";
}
}
to get nice language injection: http://blogs.jetbrains.com/idea/tag/language-injection/ when editing the HTML inside the " quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment