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

Forum Formatting Question

December 12 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Two questions about formatting that have been sitting in the back of my mind since I started posting:
  1. Is it possible to put anchors within a forum post. I'd like to organize my OP's for some of my API scripts, and being able to put a table of contents in would be rather helpful.
  2. Using the paragraph options seem to be mutually exclusive, any suggestions for using multiple paragraph formatting options in a single post?
I'm sure these answers are somewhere in the wiki, but I haven't found them.

Thanks for any answers you all can provide,

Scott
December 12 (8 years ago)
Is it possible to put anchors within a forum post.

You can click a post's Permalink button to anchor yourself to that post (and then copy the URL). Alternatively, copy the URL of a post's Permalink button.

any suggestions for using multiple paragraph formatting options in a single post?

I'd hazard a guess that you're referring to placing <pre> elements ("Code boxes") within quotes? That can be done by highlighting the element and dragging it into a quote.
December 12 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
For the anchoring, I was wondering if the insert anchor section of the link tool would allow for links to sections within the same thread:

So, I could do:Normal text
Table of Contents:
Instructions -> Links to the instructions header in this thread
Changelog -> Links to the changelog header in this thread
Possible Future Features -> links to the possible future features header in this thread

For the formatting, I'm not sure what you mean by dragging the element into the quote, but I now can't replicate the issue I was having (go figure).

December 12 (8 years ago)

Edited December 12 (8 years ago)
Yes, this is possible, but I recommend against it.

Header 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Header 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

<span id="TOC1"><h1>Header 1</h1></span>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint 
occaecat cupidatat non proident, sunt in culpa qui officia deserunt 
mollit anim id est laborum.
<br><br>
<span id="TOC2"><h1>Header 2</h1></span>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint 
occaecat cupidatat non proident, sunt in culpa qui officia deserunt 
mollit anim id est laborum.

I don't recommend this because every time you edit the post, the span's ID changes (is repeatedly prepended with "userscript-"), breaking the anchor. This would require maintaining a post's HTML code outside of the forum (much like one might handle a macro with HTML entities).

Instead, I would recommend maintaining a script's documentation on GitHub (readme file) or the Roll20 Wiki.
December 12 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ah, was afraid of that. Thanks for the information Silvyre.