Did you know there are more formatting options available than what the topic/post editor presents to you? If not, you’re in the right place!<\/p>\n
Our current platform supports a whole range of different options for formatting! Currently, you can use a mix of Markdown (also sometimes just called MD), HTML, and BBCode tags for formatting.<\/p>\n
I personally find Markdown to be my go-to, but if you’re a veteran of other forums, or a web developer, you may find BBCode or HTML to be easier to use. Either way, don’t be afraid to mix and match, and use what works best for you!<\/p>\n
To start off with, did you notice “The Overview” and “Headings” were bigger than standard text? That’s because I’ve marked it as a heading by adding a “#” symbol at the beginning of the line like this:<\/p>\n
\n# The Overview\n\n## Headings\n\n<\/code><\/pre>\nYou can change the size of the heading by adjusting the number of #s<\/span> that you add. A single # is considered a main heading (or H1) ## would be a subheading of that (H2), ### would be another layer deep (H3), etc. all the way up to… Well, let’s find out!<\/p>\n<\/a>Heading 3<\/h3>\n<\/a>Heading 4<\/h4>\n<\/a>Heading 5<\/h5>\n<\/a>Heading 6<\/h6>\n####### Heading 7<\/p>\n
It looks like up to 6 levels of heading!<\/p>\n
Headings are great for longer-form content, or when you’re separating out the steps of a How To guide. They also allow you to build out a sort-of table of contents, like my Quick Links<\/a> section above, though that’s a bit more complex, and requires editing your post to get accurate links, so we’ll save it for a later post.<\/p>\n<\/a>Code Blocks<\/h2>\nLet’s look at formatting code blocks and inline code next, as I’ll be using those throughout this topic to show off the code behind things.<\/p>\n
We have a few different options for marking code, and I expect the simple code block will be the most common use-case on our site. Simply start and end your code with 3 backticks (`) on their own lines like this:<\/p>\n
\n```
\nGet-Help Get-ChildItem -Examples
\nGet-ChildItem -Recurse
\n```<\/p>\n
\nand you’ll get this output:<\/p>\n
Get-Help Get-ChildItem -Examples\nGet-ChildItem -Recurse\n<\/code><\/pre>\nYou can also use the [code] tag that we cover next to span multiple lines for a text block, if you find yourself without a backtick key.
<\/p>\n
<\/a>Inline Code<\/h2>\nThere are also a few ways for you to have inline code<\/code> though, which can also be handy.<\/p>\n\nInline Code<\/code> - wrap your text in either single backticks `code`<\/code> or the [code] tag [code]Inline Code[/code]<\/code><\/li>\n<\/ul>\n<\/a>Strikethrough, Underline, and Highlights<\/h1>\nBold<\/strong> and Italics<\/em> are both on the bar at the top of the editor, but did you know you can also do other useful formatting such as strikethrough,<\/span> underline,<\/span> and highlighting<\/mark>?<\/p>\n\n- \n
Strikethrough<\/span> - wrap your text in either BBCode’s [s] tags [s]strikethrough[/s]<\/code> or HTML <Strike> tags <strike>Strikethrough</strike><\/code><\/p>\n<\/li>\n- \n
Underline<\/span> - wrap your text in BBCode’s [u] tag<\/p>\n<\/li>\n- \n
Mark / Highlight<\/mark> - wrap your text in HTML <mark> tags <mark>Mark / Highlight</mark> <\/code><\/p>\n<\/li>\n<\/ul>\n<\/a>C<\/span>o<\/span>l<\/span>o<\/span>r<\/span>s<\/span> and F<\/span>o<\/span>n<\/span>t<\/span>s<\/span>!<\/h1>\nSometimes, you just need to add an extra bit of flair<\/span> to your text, and colors or a new font<\/span> might do just what you need. You can use BBCode’s [color=X]<\/code> and [font=X]<\/code> tags to do just that!<\/p>\n\n- Color -
[color=red]This is red text [/color]<\/code><\/li>\n- Font -
[font=mistral]This text might be hard to read! [/font]<\/code><\/li>\n<\/ul>\n<\/a>Subscript & Superscript<\/h1>\nDo you find yourself needing to specify 28<\/sup> too often, or Np<\/sub>? “No, this isn’t a math homework forum” you say? Well, you can do subscript<\/sub> and superscript<\/sup> with the <sub> and <sup> HTML tags respectively.<\/p>\n\n- Supercript -
<sup>superscript</sup><\/code><\/li>\n- Subscript -
<sub>subscript</sub><\/code><\/li>\n<\/ul>\n<\/a>Escaping<\/h1>\nAt this point, some of you will be wondering how I’m able to type some of these examples without the example itself triggering the formatting. That is accomplished using an “escape character”<\/p>\n
If you’re a command line guru, or remember real terminals, you may already be familiar with escape sequences/characters. They were originally used to interact with a terminal itself, and in modern terminals can do things like change text color, spacing, font, or other aspects of the terminal/text itself. In scripting, escape characters/sequences can be used to avoid activating a function of a special character.<\/p>\n
Here we use the escape character more like in scripting. In our case, simply putting a “\\” (backslash, or as I like to call it, Windows slash) character before a symbol or sequence will “escape” it and cause it to not<\/em> be interpreted.<\/p>\n“But how did you type that<\/strong>, then?”<\/em> Simple, just escape the escape character with an escape character!<\/p>\nsimply putting a \"\\\\\" (backslash, or as I like to call it, Windows slash) \n<\/code><\/pre>\nAs you can see, I’ve actually had to use two \\'s to get that to display correctly.<\/p>\n
<\/a>Other resources<\/h1>\nYou may also find some of the below resources handy as well!<\/p>\n
\n- We’re currently based on discourse, and discourse themselves has a handy guide to some formatting options (though this isn’t comprehensive, unfortunately) over here<\/a>.<\/li>\n
- This page<\/a> is an “allow list” of HTML elements that discourse allows. Our list might not match this 100%, but if you’re a web dev, you might find this handy<\/li>\n
- Discourse uses Markdown-IT for Markdown, and Markdown-IT happens to have a really good<\/em> interactive demo here<\/a> which covers some some advanced topics that I haven’t, such as building out tables<\/a>! Though I’ll warn that not all features of Markdown-IT are available.<\/li>\n<\/ul>\n
<\/a>There’s plenty more to discover!<\/h1>\nI’ve not comprehensively covered all of the options here, but these are some of the things I’ve found handy. Do you use any other options that I missed? Let us know below!<\/p>","step":[]}