diff --git a/topics/tutorials/custom_language_support/documentation_provider.md b/topics/tutorials/custom_language_support/documentation_provider.md index d556de91a..09325de2d 100644 --- a/topics/tutorials/custom_language_support/documentation_provider.md +++ b/topics/tutorials/custom_language_support/documentation_provider.md @@ -85,9 +85,10 @@ While `SimpleProperty` elements will provide us with their key and value, we hav Since we would like to show this comment in the documentation as well, we need a small helper function that extracts the text from the comment. This function will reside in the `SimpleUtil` class and will find, for instance, the comment preceding `apikey` in the following short example: -```text -#An application programming interface key (API key) is a unique identifier -#used to authenticate a user, developer, or calling program to an API. +```properties +# An application programming interface key (API key) is a unique +# identifier used to authenticate a user, developer, or calling +# program to an API. apikey=ph342m91337h4xX0r5k!11Zz! ``` diff --git a/topics/tutorials/custom_language_support/formatter.md b/topics/tutorials/custom_language_support/formatter.md index 1b09b5de9..696124e18 100644 --- a/topics/tutorials/custom_language_support/formatter.md +++ b/topics/tutorials/custom_language_support/formatter.md @@ -38,11 +38,11 @@ Define a formatter that removes extra spaces except for the single spaces around -``` +```properties foo = bar ``` -``` +```properties foo = bar ``` diff --git a/topics/tutorials/custom_language_support/lexer_and_parser_definition.md b/topics/tutorials/custom_language_support/lexer_and_parser_definition.md index 903b66efb..85ac36b8d 100644 --- a/topics/tutorials/custom_language_support/lexer_and_parser_definition.md +++ b/topics/tutorials/custom_language_support/lexer_and_parser_definition.md @@ -101,7 +101,7 @@ Run the plugin by using the Gradle [`runIde`](creating_plugin_project.md#running Create a test.simple file with the following content: -```text +```properties # You are reading the ".properties" entry. ! The exclamation mark can also mark text as comments. website = https://en.wikipedia.org/ diff --git a/topics/tutorials/writing_tests_for_plugins/completion_test.md b/topics/tutorials/writing_tests_for_plugins/completion_test.md index 2a1b88cb9..d7c4f5393 100644 --- a/topics/tutorials/writing_tests_for_plugins/completion_test.md +++ b/topics/tutorials/writing_tests_for_plugins/completion_test.md @@ -14,7 +14,7 @@ Create the DefaultTestData.simple file in the testData directory. This file contains test Simple language properties that will be completed in a test Java file (see the `Test` class later in this section). -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/DefaultTestData.simple"} diff --git a/topics/tutorials/writing_tests_for_plugins/find_usages_test.md b/topics/tutorials/writing_tests_for_plugins/find_usages_test.md index 034d408b5..b10e7289d 100644 --- a/topics/tutorials/writing_tests_for_plugins/find_usages_test.md +++ b/topics/tutorials/writing_tests_for_plugins/find_usages_test.md @@ -15,7 +15,7 @@ ## Define the Test Data Create the FindUsagesTestData.simple file in the testData directory. -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/FindUsagesTestData.simple"} diff --git a/topics/tutorials/writing_tests_for_plugins/formatter_test.md b/topics/tutorials/writing_tests_for_plugins/formatter_test.md index de1e8d03c..bb3e6636f 100644 --- a/topics/tutorials/writing_tests_for_plugins/formatter_test.md +++ b/topics/tutorials/writing_tests_for_plugins/formatter_test.md @@ -17,7 +17,7 @@ See also [`FormatterTestCase`](%gh-ic%/platform/testFramework/src/com/intellij/p ## Define Test Data Create the FormatterTestData.simple file in the testData directory. -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/FormatterTestData.simple"} diff --git a/topics/tutorials/writing_tests_for_plugins/parsing_test.md b/topics/tutorials/writing_tests_for_plugins/parsing_test.md index 046234a75..c9875782f 100644 --- a/topics/tutorials/writing_tests_for_plugins/parsing_test.md +++ b/topics/tutorials/writing_tests_for_plugins/parsing_test.md @@ -35,7 +35,7 @@ private recover_property ::= !(KEY|SEPARATOR|COMMENT) Create the ParsingTestData.simple properties file in the testData folder. Note the last few lines define a purposely incorrect key. -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/ParsingTestData.simple"} @@ -51,7 +51,7 @@ Use the Copy PSI button to copy the expected PSI structure to ## Define the Output Reference Test Data Create a file ParsingTestData.txt with the copied PSI tree. -```text +```properties ``` {src="simple_language_plugin/src/test/testData/ParsingTestData.txt"} diff --git a/topics/tutorials/writing_tests_for_plugins/rename_test.md b/topics/tutorials/writing_tests_for_plugins/rename_test.md index 1b5773fce..eec0d94e3 100644 --- a/topics/tutorials/writing_tests_for_plugins/rename_test.md +++ b/topics/tutorials/writing_tests_for_plugins/rename_test.md @@ -15,7 +15,7 @@ ## Define Input Test Data Create the RenameTestData.simple properties file in the testData directory. -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/RenameTestData.simple"} @@ -31,7 +31,7 @@ Create the RenameTestDataAfter.simple file in the testData

RenameTestData.simple
should be renamed to `websiteUrl =` by the test. -```bash +```properties ``` {src="simple_language_plugin/src/test/testData/RenameTestDataAfter.simple"}