ElkArte Community

Title: Code Coloring
Post by: ashes35 on January 15, 2017, 09:19:22 am
Hi, our posts are usually based on C code examples but we cannot color them with "code" addition. Is there any method to color C codes ?
Title: Re: Code Coloring
Post by: emanuele on January 15, 2017, 11:21:32 am
I was looking into https://highlightjs.org/ but it seems I miss something.
Title: Re: Code Coloring
Post by: ashes35 on January 15, 2017, 11:29:36 am
Here is our site's code example: http://elektronark.org/index.php?topic=480.0
Title: Re: Code Coloring
Post by: Spuds on January 15, 2017, 11:46:58 am
Did you enable the "Enable prettifying of code tags"  option ?  Its under the menu Admin->Forum->Posts and Topics->Post Settings
Title: Re: Code Coloring
Post by: ashes35 on January 15, 2017, 12:36:44 pm
Quote from: Spuds – Did you enable the "Enable prettifying of code tags"  option ?  Its under the menu Admin->Forum->Posts and Topics->Post Settings
Thanks for help. Your solution works :)
Title: Re: Code Coloring
Post by: emanuele on January 15, 2017, 12:56:29 pm
/me completely forgot we already added something... :-[