From 88f98d2fee4e7d28590b0e9e48177a0b1c7bd350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 4 May 2022 12:12:50 +0200 Subject: [PATCH] testing_highlighting.md: more structure --- .../testing_plugins/testing_highlighting.md | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/topics/basics/testing_plugins/testing_highlighting.md b/topics/basics/testing_plugins/testing_highlighting.md index 8a48032f8..03ff071f3 100644 --- a/topics/basics/testing_plugins/testing_highlighting.md +++ b/topics/basics/testing_plugins/testing_highlighting.md @@ -11,6 +11,9 @@ To ignore verifying additional highlighting, set parameter `ignoreExtraHighlight Alternatively, you can use `CodeInsightTestFixture.testHighlighting()`, which loads a [testdata file](test_project_and_testdata_directories.md) into the in-memory editor and highlights it as a single operation. +**Example**: +[Custom Language Support Tutorial: Testing Annotator](annotator_test.md) + ### Inspections If you need to test inspections, they must be enabled explicitly. @@ -30,7 +33,7 @@ In its simplest form, the markup looks like this: code to be highlighted ``` -Or, as a more specific example: +A more realistic example, embedded in Java test data to be highlighted: ```xml public int compareTo(Simple other) { @@ -38,6 +41,7 @@ public int