I frequently need to paste a code section into a Markdown document and then I want to change some color in the text.
For example:
This is a code sample:
```
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
```
How can I set the text string "Hello World!" to the color red? I wish to use it as a code block since I don't want to reformat it to Markdown style.
You can't put color on it.
Try putting C like this:
```c
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
```
It will make your text seems as code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With