PHP syntax highlight on this forum

Hello!

Sorry for asking non-slim question, but how to make PHP syntax (or other languages) highlight in this editor, when asking/replying?

I did not find any relative button/tool/link to do so, but in other topics saw, that somehow people do that.

<?php
  $myvar = 123;
  echo "I want this to be highlighted as PHP code :)";
?>

Use three backticks followed by php and then close with three backticks.

eg.

   ```php
   $myvar = 123;
   echo "a string";
   ```
1 Like

thanks, it works! :seedling: