Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.