Skip to content

Instantly share code, notes, and snippets.

@polybuildr
Last active February 22, 2020 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save polybuildr/69a42db2cca07a14f805 to your computer and use it in GitHub Desktop.
Save polybuildr/69a42db2cca07a14f805 to your computer and use it in GitHub Desktop.
Testing GitHub Gists syntax highlighting for PHP without an opening <?php tag.
$foo = "bar";
echo $foo;
@SalmanRavoof
Copy link

How did you do it?

It didn't work for my code snippet. So I had to add the opening tag and comment that it's not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment