Doc: Replace \badcode with \code to show JSON highlighting

...in the online docs. Does not work in the helps.

Change-Id: I6391ff40be2607eb026153deec418e9389954b7d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Leena Miettinen
2024-06-25 15:39:18 +02:00
parent 11905967fe
commit 9cb4e8042a

View File

@@ -44,7 +44,7 @@
\c NOT_COMMON_VALUE is displayed in \uicontrol {Initial Parameters}
and \c AN_ENVIRONMENT_FLAG in the environment configuration field.
\badcode
\code
{
"version": 1,
"configurePresets": [
@@ -91,7 +91,7 @@
\li GNU gdb 11.2.0 for MinGW 11.2.0 64-bit debugger
\endlist
\badcode
\code
{
"version": 1,
"configurePresets": [
@@ -131,7 +131,7 @@
generator, add \c Debug and \c Release build steps, and specify the path
to \c ninja.exe as a value of the \c CMAKE_MAKE_PROGRAM variable:
\badcode
\code
{
"version": 2,
"configurePresets": [
@@ -180,7 +180,7 @@
For example:
\badcode
\code
"generator": "Ninja Multi-Config",
"toolset": {
"value": "v142,host=x64",
@@ -196,7 +196,7 @@
in the \c PATH, you might also have to specify the compiler to use in
\c cacheVariables or \c environmentVariables:
\badcode
\code
"generator": "Ninja Multi-Config",
"toolset": {
"value": "v142,host=x64",
@@ -226,7 +226,7 @@
\li \c wine emulator
\endlist
\badcode
\code
{
"version": 4,
"configurePresets": [
@@ -262,7 +262,7 @@
if the \c hostSystemName equals \c Linux, the \c linux presets are used and
if it equals \c Windows, the \c windows presets are used.
\badcode
\code
{
"version": 3,
"configurePresets": [