Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Pasting Code into a Post

Ok, I am feeling REALLY STUPID, but I need to post a question about nested Roll Queries and I have a chunk of macro code that I want to include. I know that there is some way to paste a code block, but for the life of me I can't figure out how to do it. Anyone care to point out the obvious to me? Thanks in advance!
1481212048
Kirsty
Pro
Sheet Author
Don't feel bad, it took me a while to figure it out too! When you make your post, there is a paragraph button at the top left of the text box. One of the options there is for code.
1481216818

Edited 1481217017
The HTML entities will convert to the values when you post it. Even in the code block.  You will need to add in the amp; after each & to get it to post correctly with the HTML entities intact.
1481218869

Edited 1481218908
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
double amp if you are copying and pasting it as the forum will eat it when you paste it and then eat it again when you post it. EDIT: Can also make a pastebin or gist of it and then link to that in the post.
Kristy: thanks for the reply!!! Ed S. and Scott C.: thanks for the clarification!!! I created a Pastebin account and I pasted the code there and included the link in my post. Thanks for all of the help everyone!