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
+6 -2
View File
@@ -176,7 +176,9 @@ installers. The most commonly-used variables are:
The name of the package file to generate, not including the
extension. For example, ``cmake-2.6.1-Linux-i686``. The default value
is::
is:
.. code-block:: cmake
${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}
@@ -197,7 +199,9 @@ installers. The most commonly-used variables are:
.. versionadded:: 3.7
An algorithm that will be used to generate an additional file with the
checksum of the package. The output file name will be::
checksum of the package. The output file name will be:
.. code-block:: cmake
${CPACK_PACKAGE_FILE_NAME}.${CPACK_PACKAGE_CHECKSUM}