From 69417418e40b080b7e5b1c17db650db672f83a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Mon, 22 Feb 2021 14:51:33 +0100 Subject: [PATCH] syntax_highlighting_and_error_highlighting.md: tip HtmlSyntaxInfoUtil --- .../syntax_highlighting_and_error_highlighting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/topics/reference_guide/custom_language_support/syntax_highlighting_and_error_highlighting.md b/topics/reference_guide/custom_language_support/syntax_highlighting_and_error_highlighting.md index 8e13e93cb..25e0e5b80 100644 --- a/topics/reference_guide/custom_language_support/syntax_highlighting_and_error_highlighting.md +++ b/topics/reference_guide/custom_language_support/syntax_highlighting_and_error_highlighting.md @@ -37,6 +37,10 @@ For highlighting lexer errors, the standard `TextAttributesKey` for bad characte **Examples:** - [`SyntaxHighlighter`](upsource:///plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesHighlighter.java) implementation for [Properties language plugin](upsource:///plugins/properties/) - [Custom Language Support Tutorial: Syntax Highlighter](syntax_highlighter_and_color_settings_page.md) + + > Use [`HtmlSyntaxInfoUtil`](upsource:///platform/lang-impl/src/com/intellij/openapi/editor/richcopy/HtmlSyntaxInfoUtil.java) to create Lexer-based highlighted code samples, e.g. for usage in documentation. + > + {type="tip"} ## Parser