Color scheme when \iffalse
is used
#4225
Unanswered
thomas-saigre
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I will have a look at it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a LaTeX code, if I want to skip some lines of code, I can insert the commands
![image](https://private-user-images.githubusercontent.com/60920471/321620295-a29f2c34-bdd3-429e-be01-72462acaf6c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjgxODMsIm5iZiI6MTczOTY2Nzg4MywicGF0aCI6Ii82MDkyMDQ3MS8zMjE2MjAyOTUtYTI5ZjJjMzQtYmRkMy00MjllLWJlMDEtNzI0NjJhY2FmNmM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxMDQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwODU1YTliNDA0ZjZkNjE2ZGZlMGFlYzY3MzFlY2U1MDM2MGRhMTliNzI1NzdhNDYxNDljYmNjNWM3NjBhYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tkHyX2s2XwTmT6TIhGVd2Qh5-AwOpq5dtJwxvW3TH90)
\iffalse
and\fi
.With the extension, this considers the code inside as commented and colorizes it in green (in my color theme):
In a c++ code, when I insert the equivalent lines of code to skip a part of the code (
![image](https://private-user-images.githubusercontent.com/60920471/321620686-2a7eead9-79f2-444d-ab5f-e6575ff8f76e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjgxODMsIm5iZiI6MTczOTY2Nzg4MywicGF0aCI6Ii82MDkyMDQ3MS8zMjE2MjA2ODYtMmE3ZWVhZDktNzlmMi00NDRkLWFiNWYtZTY1NzVmZjhmNzZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxMDQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxMzBhYThkNWJhZDVmMjNmZTQyMmY5NzAxMzlhMzRkNmI1NTVkNWQ5OTIyOGRjODc5MWVjYjBhNGRjMzVjNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.khcLM1_Jwfwlc0BjPt1MWaMwVd6W9LGPVV432IBANPI)
#if 0
andendif
) here is how the code is colorized :we still have the color of the code, but shaded.
I prefer the second option, I find it more readable.
Can we do it as well with LaTeX-Workshop ?
Beta Was this translation helpful? Give feedback.
All reactions