How do I use the code snippet feature?

I can’t find any information on how to use the code snippet { some code } feature! Can anyone share any insight on this development feature? Thanks :pray:

You use it to place inline code in a text block, it could be javascript, but more commonly you will have some php there that spits out the results of a calculation or some database lookup based on the query string.

1 Like

I was experimenting with the developer feature to return the results of a simple die roll so I created a custom code snippet with a php script before the html and a code snippet that calls out the calculation. I am not able to see the result, and on inspection the code snippet gets commented out

Hi @tanzantium, the PHP will be exported if you set the page file extension to .php

1 Like

Thank you, it worked.