Help: More syntax highlighting for literal blocks

Covers almost all blocks containing actual code, except:

* Parsed-literal blocks can't be highlighted, including many command
  summaries and substitution-heavy docs like find_... commands.
  This is a Sphinx limitation.

* Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES,
  DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the
  tutorial, bracket arguments/comments in cmake-language.7 and
  cmake-developer.7.

* FindQt4 module, which needs reformatting.
This commit is contained in:
Nikita Nemkin
2025-01-29 20:05:12 +05:00
committed by Brad King
parent e806a490b6
commit 9890cfc4ec
79 changed files with 339 additions and 176 deletions
+4 -4
View File
@@ -27,7 +27,7 @@ toolchain file instead.
Macro ``CMAKE_FORCE_C_COMPILER`` has the following signature:
::
.. code-block:: cmake
CMAKE_FORCE_C_COMPILER(<compiler> <compiler-id>)
@@ -39,7 +39,7 @@ compiler information tests.
Macro ``CMAKE_FORCE_CXX_COMPILER`` has the following signature:
::
.. code-block:: cmake
CMAKE_FORCE_CXX_COMPILER(<compiler> <compiler-id>)
@@ -51,7 +51,7 @@ compiler information tests.
Macro ``CMAKE_FORCE_Fortran_COMPILER`` has the following signature:
::
.. code-block:: cmake
CMAKE_FORCE_Fortran_COMPILER(<compiler> <compiler-id>)
@@ -63,7 +63,7 @@ compiler information tests.
So a simple toolchain file could look like this:
::
.. code-block:: cmake
include (CMakeForceCompiler)
set(CMAKE_SYSTEM_NAME Generic)