Jump to content

color-coded code on the message board


Recommended Posts

Hi guys,

 

I'm new here (obviously.) When I use the [ code ] [ / code ] markup I only get plainol boring black-and-white code. But everyone else gets to have this neato color coding on their posts. What markup do I use to enable that on your forum? Hope this question is in the right place. Thank you for any help!

 

Ricky

Link to comment
https://forums.phpfreaks.com/topic/52113-color-coded-code-on-the-message-board/
Share on other sites

It is enabled by default. Currently it only highlights PHP code. Eg:

<?php

// echo hello world message
echo "hello world";

?>

 

You must enclose your PHP within <?php and  ?> tags in order for the colour highlighting to work.

 

If you wish to have HTML, CSS, Javascript etc highlighted as well then perhaps see if the SMF developers can include this feature into the next release of SMF.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.