Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypto_RSA: enable syntax highlight for C code snippet #17

Open
LuminousXLB opened this issue Dec 6, 2020 · 3 comments
Open

Crypto_RSA: enable syntax highlight for C code snippet #17

LuminousXLB opened this issue Dec 6, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@LuminousXLB
Copy link
Contributor

LuminousXLB commented Dec 6, 2020

\begin{lstlisting}[language=C]

Adding a [language=C] enables the syntax highlight feature of lstlisting, and this may make the code clearer.
It's like this
image

@kevin-w-du
Copy link
Member

This does look better. I will make the changes. Since the changes affect many files, I will do it gradually. I am keeping this issue here until all the files are modified. Thanks.

@LuminousXLB
Copy link
Contributor Author

Page 13 of this document shows the supported languages. It's a pity that yaml and dockerfile are not supported.
This can be done by minted, but it requires an additional compilation option -shell-escape. Thus I'm not sure if it's a good solution for this project.

@kevin-w-du
Copy link
Member

I took a look at minted. It is definitely better than listings, some day, I will start using it, but the change is so significant, and it may break some of the annotation I placed inside the code block, so we will leave the yaml and dockerfile out for the time being.

@kevin-w-du kevin-w-du added the enhancement New feature or request label Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants