Java Code Examples for com.intellij.lang.html.HTMLLanguage#INSTANCE

The following examples show how to use com.intellij.lang.html.HTMLLanguage#INSTANCE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LatteFileViewProvider.java    From intellij-latte with MIT License 5 votes vote down vote up
@Nullable
protected PsiFile createFile(@NotNull Language lang) {
	ParserDefinition parser = LanguageParserDefinitions.INSTANCE.forLanguage(lang);
	if (parser == null) {
		return null;
	} else if (lang == XMLLanguage.INSTANCE || lang == HTMLLanguage.INSTANCE) {
		PsiFileImpl file = (PsiFileImpl) parser.createFile(this);
		file.setContentElementType(templateDataElement);
		return file;
	} else {
		return lang == this.getBaseLanguage() ? parser.createFile(this) : null;
	}
}
 
Example 2
Source File: FluidConfig.java    From idea-php-typo3-plugin with MIT License 4 votes vote down vote up
@NotNull
public static Language getCommenterLanguage() {
    final Language id = Language.findLanguageByID(getStringPropertyValue(COMMENTER_LANGUAGE_ID));
    return id == null ? HTMLLanguage.INSTANCE : id;
}
 
Example 3
Source File: WeexFileType.java    From weex-language-support with MIT License 4 votes vote down vote up
private WeexFileType() {
    super(HTMLLanguage.INSTANCE);
}
 
Example 4
Source File: RTFileType.java    From react-templates-plugin with MIT License 4 votes vote down vote up
private RTFileType() {
    super(HTMLLanguage.INSTANCE);
}
 
Example 5
Source File: VueFileType.java    From vue-for-idea with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
protected VueFileType() {
    super(HTMLLanguage.INSTANCE);
}
 
Example 6
Source File: ISMLFileType.java    From intellij-demandware with MIT License 4 votes vote down vote up
private ISMLFileType() {
    super(HTMLLanguage.INSTANCE);
}
 
Example 7
Source File: RTFileType.java    From react-templates-plugin with MIT License 4 votes vote down vote up
private RTFileType() {
    super(HTMLLanguage.INSTANCE);
}
 
Example 8
Source File: LatteFileViewProvider.java    From intellij-latte with MIT License 4 votes vote down vote up
@NotNull
@Override
public Language getTemplateDataLanguage() {
	return isXml() ? XMLLanguage.INSTANCE : HTMLLanguage.INSTANCE;
}