Forum posting question ... how post a thread question with color syntax highlighting ??
jfondren
julian.fondren at gmail.com
Sun Sep 5 17:54:59 UTC 2021
On Sunday, 5 September 2021 at 17:48:51 UTC, james.p.leblanc
wrote:
> Dear All,
>
> I have noticed that quite a few posts and responses on this
> forum include d snippets made with **nicely colored syntax
> highlighting.**
> (I do not mean just the bold markdown text.)
>
> This increases post clarity significantly.
>
> How is this being done? (I hope that this is not considered off
> topic. My goal would be able to make such posts myself. But
> also,
> if more post in this manner, it may help many.)
>
> Best Regards,
> James
There's a checkbox below the post next to 'Enable Markdown'.
You've found that with the bold markdown. If you click
'Markdown', it's a link to https://forum.dlang.org/help#markdown
which includes an example of syntax highlighting:
\```d
// I have a backslash in front of \```
string s = "so this isn't highlighted";
\```
```d
// no backslash
string s = "this has d syntax highlighting";
```
More information about the Digitalmars-d-learn
mailing list