Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    FAQ Desk: Formatting Forum Posts

    FAQ
    forum format markdown faq
    1
    1
    13135
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterJones
      PeterJones last edited by PeterJones

      Hello, and welcome to the FAQ Desk.

      In this FAQ entry, we will be covering how to format your posts in the Notepad++ Community Forum.

      Brief Summary

      TL;DR: This forum uses a set of special characters (called “Markdown”) in your post to format the text – and for some formatting, you can use the toolbar on the post window to insert that formatting. You should look at the PREVIEW window to help you make sure your post looks right before hitting SUBMIT. Use the </> Code button on the toolbar for formatting multi-line example text. Use backticks ` around the text for formatting text as typewriter style, which is useful for asking about regular expressions.

      Preview and Editing

      The results of the Markdown syntax can be seen in the PREVIEW pane next to the post-editing pane. If you cannot see the PREVIEW pane, click the SHOW PREVIEW in the upper-right of the editing input box. Your post can only be edited for three minutes after you click SUBMIT, so make sure you use the PREVIEW to get the post looking correct before you submit your post.

      Forum Toolbar

      To make post-creation easy, there is an editor toolbar over the post-entry box, so you can just type your text in the entry, highlight a portion of text, and use the toolbar to apply formatting to that text. If you click the button without selecting text first, it will put in some dummy text that will be formatted in that style, and you can just edit that text with whatever you’re trying to say. The screenshot below shows the buttons available, and tells what each of those buttons do.

      Formatting

      In a forum discussing the Notepad++ text editor, some of the most useful formatting for our posts are the blocks of multiple lines literal text (or “code”) which is useful for sharing example text; or for formatting small strings in your paragraph to stand out using typewriter font in red, which is useful when talking about search and replace strings (regular expressions); and the ability to include images in your post to show screenshots of what you need help with; and the ability to make special characters in the forum lose their meaning by putting a backslash \ before the special character.

      Literal Text Blocks

      7584aac5-d690-46c5-8e8e-52f779d0c7de-image.png When you want to show us data from your editor window (“I have paragraphs X Y Z that I need help with”), you can use the </> button on the toolbar, which will insert ``` on a line before and after your selected text. When your text is between those lines of three backticks each, it will be formatted as a block of typewriter text

      ```
      lines of
      **example**
      text
      1*2*3
      ```
      

      will render as

      lines of
      **example**
      text
      1*2*3
      

      Aside from being formatted differently than the other parts of your post, it also has the benefit of telling the forum to display the literal characters, even when they would normally be special characters to the forum. For example, typing 1*2*3 would normally show up in the forum as 123 with the 2 in italics because a single-asterisk before and after text is the formatting code for “italic” in the forum (see below)… but inside the literal text block shown above, it shows up as the actual characters.

      Also, normally, the forum takes "quoted text" and changes the quotes to “smart quotes” or “curly quotes” . That’s fine in a paragraph like this. But if you are showing us the text you want to search-and-replace on, we cannot be sure whether the “smart quotes” were actually part of your data, or whether they were meant to be "normal quotes". If you use the literal text block in your post for sharing your example data, we can be sure that the text we see in your post is really the text you have.

      Extras: For blocks of inline text, you can alternately use ~~~ instead of ```. Also, on the line of ``` or ~~~ before the literal text, you can actually also append a word to tell what kind of text, like ```txt, ```html, ```xml, or ```python. This might not seem useful to you at first, but there are times when telling the forum what kind of text will help the forum display it better. (You can search the internet for “markdown code block language list” to find other languages.)

      Red Typewriter Text in your paragraph

      To get red typewriter text inside your paragraph, use `red typewriter text`. Like the literal code blocks above, this will make the forum’s special characters not do anything, so `1*2*3` will show up as 1*2*3. It also works so you can show raw HTML entities, so `&lt;` will render as &lt; (though entities in the forum confuse the forum’s WYSIWYG editor, so if you edit a post with such text, the forum editor will convert it to the character; sorry, we can’t fix that).

      In the forum, we often use the red typewriter text for search and replace strings (regular expressions), so they stand out, and so that special characters come through.

      Special Characters

      As mentioned above, the sequence 1*2*3 will show up as 123 with 2 in italics, because single asterisks * around text makes it italic. To be able to show special characters, you can use a backslash \ before it, like 1\*2\*3 . If you need to include the special forum formatting characters in your normal text, that’s how. But really, you should be using literal text blocks and red typewriter text when giving us example text and regular expressions.

      However, two sequences needs special attention, even inside of red typewriter text backslash open bracket or multiline literal text blocks: [ and ]. The forum treats that more special than others, so backtick backslash open-bracket backtick `[` will render as just [, rather than the expected [; even worse, the forum PREVIEW tab makes it look like you got it right, but really, it still will be wrong in the final post. With the right number of escapes, it is possible to get it right; but if you have the backslash open-bracket in your example text or your regex, you might want to include a screenshot as well, to make sure you communicate it properly. For a regular expression, where backslash bracket is used to tell the regex to search for a literal open-bracket, it might be best to use an alternate regex for matching the literal open-bracket or closed-bracked, like \x5B and \x5D, which will format properly in the forum and can be easily copy/pasted, but will still work in your regular expression in Notepad++'s search-and-replace.

      Examples of the rendering:

      backslash count raw in backticks raw in backticks
      0 ] ] [ [
      1 ] ] [ [
      2 ] ] [ [
      3 ] \] [ \[
      4 ] \\] [ \\[

      The preview of that showed:
      40c67edc-fa38-488a-b1ee-6e6e295e1760-image.png

      But that’s not how it rendered, which actually showed up as:
      502969ef-7c34-4ac5-89bd-91a46b22d08f-image.png

      Similar happens in code-text-blocks

      0 | ]        | [
      1 | ]        | [
      2 | ]       | [
      3 | \]      | \[
      4 | \\]     | \\[
      

      7c8a96db-3960-4f04-96ea-4fc70102f330-image.png

      Because of that issue, if you’re posting a regex in the forum, it’s highly recommended to use \x5B and \x5D in regexes where you wanted to match a literal [ or ] .

      Images in your post

      The easiest way to include a screenshot in your post is to use normal Windows methods to take the screenshot (for example, Alt+PrintScreen to grab the whole Notepad++ window, or use the Windows Snip & Sketch Win+Shift+S to grab smaller section of the screen), and then just use Windows paste Ctrl+V to paste it in your post.

      1c1a19a5-5c66-4a33-98e6-e47a992c3aa7-image.png If you’ve already saved the screenshot as an image on your computer, you can use the Upload Image button on the toolbar to manually upload the image from your computer.

      a8ca2516-1104-4a75-996d-1456b5d55ff6-image.png If the image is on a server like imgur, you can use the Image button to type ![alt text](image url) in the forum, and then replace image url with the URL of the image; for example, to include the toolbar screenshot in the FAQ post above, I used ![](https://i.imgur.com/KOsSLNe.png) . (Please note: for services like imgur, the URL they usually give you is the wrapper page, like https://imgur.com/KOsSLNe, which won’t properly work as an image in the forum; make sure you grab the URL for the imgage .gif or .png file itself; imgur calls it the “direct link”.)

      Other formatting

      **bold** or __bold__ will make your text bold

      *italic* or _italic_ will make your text italic

      you can get a list with the list button, or putting asterisk-space * or hyphen-space - as the first characters on the line

      * first bullet
      * second bullet
      
      • first bullet
      • second bullet

      Numbered lists with a number, then period or close-parenthesis, then a space

      1. one
      2. two
      
      1) first
      2) second
      
      1. one
      2. two
      1. first
      2. second

      ~~strikethrough~~ will strikethrough your text

      Headers: use one or more hashtags followed by a space and the text for the header. The titles of posts are header one, so I generally stick with header two or lower inside a post:

      ## header two
      ### header three
      #### header four
      ##### header five
      

      header two

      header three

      header four

      header five

      -----

      Other Markdown References

      • https://daringfireball.net/projects/markdown/syntax
      • https://community.notepad-plus-plus.org/topic/14262/how-to-markdown-code-on-this-forum/4
      1 Reply Last reply Reply Quote 3
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  guy038 guy038 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  Andrea Mark Shaw Andrea Mark Shaw 
      • Referenced by  Andrea Mark Shaw Andrea Mark Shaw 
      • Referenced by  Terry R Terry R 
      • Referenced by  Terry R Terry R 
      • Referenced by  Terry R Terry R 
      • Referenced by  Terry R Terry R 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  Lycan Thrope Lycan Thrope 
      • Referenced by  Lycan Thrope Lycan Thrope 
      • Referenced by  Terry R Terry R 
      • Pinned by  PeterJones PeterJones 
      • Unpinned by  PeterJones PeterJones 
      • Pinned by  PeterJones PeterJones 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  Terry R Terry R 
      • Referenced by  Terry R Terry R 
      • Referenced by  Terry R Terry R 
      • Referenced by  Lycan Thrope Lycan Thrope 
      • Referenced by  Terry R Terry R 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  L S L S 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Alan Kilborn Alan Kilborn 
      • Referenced by  Neil Schipper Neil Schipper 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Alan Kilborn Alan Kilborn 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Alan Kilborn Alan Kilborn 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Olivier Chantraine Olivier Chantraine 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  faouzi sat faouzi sat 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Sheba Sam Sheba Sam 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Charles Chickering Charles Chickering 
      • Referenced by  Alan Kilborn Alan Kilborn 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Mark Yorkovich Mark Yorkovich 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Jan N. Pedersen Jan N. Pedersen 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  PeterJones PeterJones 
      • Referenced by  Lycan Thrope Lycan Thrope 
      • Referenced by  Alan Kilborn Alan Kilborn 
      • First post
        Last post
      Copyright © 2014 NodeBB Forums | Contributors