<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to Markdown code on this forum?]]></title><description><![CDATA[<p dir="auto">I’m struggling to format code sections when posting to this forum.</p>
<p dir="auto">The help says:</p>
<blockquote>
<p dir="auto">To produce a code block in Markdown, simply indent every line of the block by at least 4 spaces or 1 tab.</p>
</blockquote>
<p dir="auto">The next 2 lines start with 8 and 12 spaces respectively:<br />
if not “mnFixedFindFilename” in globals()<br />
globals()[“mnFixedFindFilename”] = notepad.getCurrentFilename())<br />
but the preview window steals my spaces and formats as normal…<br />
<img src="https://camo.nodebb.org/fd8b9891d29fa2179630deb8090bc9f4e9c44d67?url=http%3A%2F%2Fi.imgur.com%2FFZi8g9X.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">How do I get the fancy black code blocks!?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14262/how-to-markdown-code-on-this-forum</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 14:03:18 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14262.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Aug 2017 11:18:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to Markdown code on this forum? on Wed, 18 Dec 2024 14:32:15 GMT]]></title><description><![CDATA[<h2>For Future Readers</h2>
<p dir="auto">The hints in this discussion are mostly still good (other than suggesting imgur, as the moderator note clarifies); however, a few years after this discussion, we added a <a href="/topic/21925">FAQ: Formatting Forum Posts</a> which should be used as the canonical/official guide for using Markdown on this Forum; the benefit of the FAQ is that it can and will be kept up-to-date, which is harder to do for these older discussions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98599</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98599</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 18 Dec 2024 14:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Sat, 12 Jan 2019 12:15:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a></p>
<p dir="auto">Great help.</p>
<p dir="auto">I was always putting something wrong that was destroying the presented version.</p>
<p dir="auto">now I am wiser with your list.</p>
<p dir="auto">Maybe this site should give a link of your post in the message compose window.</p>
<p dir="auto">Thanks a gig.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38409</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38409</guid><dc:creator><![CDATA[V S Rawat]]></dc:creator><pubDate>Sat, 12 Jan 2019 12:15:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Thu, 10 Jan 2019 20:32:00 GMT]]></title><description><![CDATA[<p dir="auto">Looks like the ```z notation doesn’t need blank lines surrounding:</p>
<pre><code>\----
````x
```z
blah
```
````
\----
</code></pre>
<p dir="auto">renders as</p>
<p dir="auto">-—</p>
<pre><code class="language-x">```z
blah
```
</code></pre>
<p dir="auto">-—</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38287</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38287</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 10 Jan 2019 20:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Thu, 10 Jan 2019 19:19:15 GMT]]></title><description><![CDATA[<p dir="auto">I just saw that another trick that <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> taught us in some other post isn’t in his summary above.</p>
<p dir="auto">For quoting a file, there are two methods.  The first, as others (including Scott) showed above, is to indent all the lines of the file by 4 spaces – and having a blank line before and after.  This will create the black box, which can actually do syntax highlighting:</p>
<pre><code class="language-z">\-----
normal text followed by blank line

    # this block indented four spaces
    x = os.getenv('TEMP')

\-----
</code></pre>
<p dir="auto">will be formatted as<br />
-----<br />
normal text followed by blank line</p>
<pre><code># this block indented four spaces
x = os.getenv('TEMP')
</code></pre>
<p dir="auto">-----</p>
<p dir="auto">But you’ll notice that my example code doesn’t have the black box or code formatting. I got that through what I call the “```z trick”: prefix your file by a blank line, followed by ```z by itself on a line, followed by ``` by itself and another blank, like</p>
<pre><code class="language-x">\----- visual separation for my example
normal text before blank line

```z
text that doesn't have to be indented
```

more normal text, after blank line
\----- visual separation for my example
</code></pre>
<p dir="auto">To nest them (like I did here), you can use balanced groups of more ```` ticks, followed by a different letter, like:</p>
<pre><code>\----

````x

```z
blah
```

````

\----
</code></pre>
<p dir="auto">Hope this helps clarify.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38274</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38274</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 10 Jan 2019 19:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Sat, 03 Mar 2018 01:17:12 GMT]]></title><description><![CDATA[<p dir="auto">Alternative for capturing GIF: <a href="http://www.screentogif.com/" rel="nofollow ugc">ScreenToGif</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/30706</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30706</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Sat, 03 Mar 2018 01:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Wed, 23 Aug 2017 19:43:18 GMT]]></title><description><![CDATA[<p dir="auto">Ahem.  Well, I’m somewhat embarrassed that the posting of mine that has generated the most interest over the past couple of years is about…<em>markdown syntax</em>.  :-D</p>
<p dir="auto">Here’s an addition to the above “cheatsheet”, because I recently messed up trying to embed a “video” in a posting even thought I’ve done it before (so I re-figured out the right way to do it):</p>
<p dir="auto">-------------------</p>
<h4>VIDEOS (not links-to-videos) EMBEDDED IN THE POST:</h4>
<h5>Note: These are actually animated-GIF files, not true video files</h5>
<ul>
<li>Create screen-capture’d video file (e.g., .MP4 with SnagIt…my preference…YMMV) showing what you want the readers of your post to see</li>
<li>Use online <em>video to animated-GIF converter</em> (e.g., <a href="https://ezgif.com/video-to-gif" rel="nofollow ugc">https://ezgif.com/video-to-gif</a>) to convert video (e.g. .MP4) to .GIF</li>
<li>Save resulting .GIF file locally (temporarily)</li>
<li>Upload .GIF file to image-hosting site (e.g., <a href="http://imgur.com/" rel="nofollow ugc">http://imgur.com/</a>)</li>
<li>Get “markdown” link to uploaded .GIF from image-hosting site to clipboard;  example:  <code>[Imgur](http://i.imgur.com/UPYeN9e.gifv)</code></li>
<li>Add <code>!</code> out front, optionally delete <code>Imgur</code> between the <code>[</code> and the <code>]</code>, and change <code>gifv</code> to <code>gif</code>; example: <code>![](http://i.imgur.com/UPYeN9e.gif)</code></li>
<li>Paste that text into a new Notepad++ Community site posting, and you should have a live-action “video” in the preview pane of your posting, and, of course, when it truly gets posted!</li>
</ul>
<p dir="auto">-------------------</p>
<h5>The embedded “video” from the above example (courtesy of <a href="https://notepad-plus-plus.org/community/topic/14356/double-click-to-select-word-also-selects-coma-behind-it" rel="nofollow ugc">this</a> thread–where I originally screwed up the embedding and got a link instead):</h5>
<p dir="auto"><img src="https://camo.nodebb.org/d53d7648a4d05dcea7a425bc4b0ded10eace7009?url=http%3A%2F%2Fi.imgur.com%2FUPYeN9e.gif" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/26416</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26416</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 23 Aug 2017 19:43:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Sat, 12 Aug 2017 10:26:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: scott-sumner">@<bdi>scott-sumner</bdi></a>,</p>
<p dir="auto">I totally agree with <a class="plugin-mentions-user plugin-mentions-a" href="/user/glennfromiowa" aria-label="Profile: glennfromiowa">@<bdi>glennfromiowa</bdi></a>. Explanations, about <strong>links</strong>, that I didn’t dare to practice yet, are very <strong>clear</strong> ! Many thanks, <strong>Scott</strong>, for this <strong>neat</strong> summary ;-))</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26232</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26232</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 12 Aug 2017 10:26:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Thu, 10 Aug 2017 18:26:44 GMT]]></title><description><![CDATA[<p dir="auto">@Scott_Sumner <strong>Thank you</strong> for posting this! This is the best guide to markdown I’ve ever seen - much better than the forum-provided guide. It should be posted somewhere accessible! Too bad we don’t have an active wiki anymore.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26212</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26212</guid><dc:creator><![CDATA[glennfromiowa]]></dc:creator><pubDate>Thu, 10 Aug 2017 18:26:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Wed, 18 Dec 2024 14:28:53 GMT]]></title><description><![CDATA[<p dir="auto">I have a cheatsheet I’ve assembled for markdown specific to this forum; it isn’t all-encompassing but maybe it is of some use:</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">\----------------- <strong>–&gt;</strong> -----------------<br />
(I like to use this one as a separator; like drawing a horizontal line; note the leading \ is important; maybe there is a better way…)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">**bold** --&gt; <strong>bold</strong></p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">*italics* --&gt; <em>italics</em></p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">***bold_italics*** --&gt; <em><strong>bold_italics</strong></em></p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">`red_with_grey_background` --&gt; <code>red_with_grey_background</code><br />
(best for presenting regular expressions since everything between back-ticks (grave accents) is treated verbatim)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">~~strikeout~~ --&gt; <s>strikeout</s></p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto"># heading1 big -&gt;</p>
<h1>heading1 big</h1>
<p dir="auto">(space between # and “h” in this example is important; # must start the line)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">## heading2 -&gt;</p>
<h2>heading2</h2>
<p dir="auto">(space between # and “h” in this example is important; # must start the line)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">### heading3 -&gt;</p>
<h3>heading3</h3>
<p dir="auto">(space between # and “h” in this example is important; # must start the line)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">#### heading4 -&gt;</p>
<h4>heading4</h4>
<p dir="auto">(space between # and “h” in this example is important; # must start the line)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">bullet-point lists:<br />
* bullet1<br />
* bullet2<br />
* bullet3<br />
–&gt;</p>
<ul>
<li>bullet1</li>
<li>bullet2</li>
<li>bullet3</li>
</ul>
<p dir="auto">(note: space after * is important!)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">numbered lists:<br />
1) one<br />
2) two<br />
3) three<br />
–&gt;</p>
<ol>
<li>one</li>
<li>two</li>
<li>three</li>
</ol>
<p dir="auto">(note: space after ) is important!)</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">a code block is indented with 4 spaces and must be preceded by a blank line:</p>
<pre><code>I really have 4 spaces before me
</code></pre>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">quote another poster:</p>
<p dir="auto">&gt;YOU said this</p>
<p dir="auto">And now I’m replying to it<br />
(note: blank line between &gt; line and the reply is important)<br />
–&gt;</p>
<blockquote>
<p dir="auto">YOU said this</p>
</blockquote>
<p dir="auto">And now I’m replying to it</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">links:</p>
<p dir="auto">Very simple direct link to <a href="https://www.google.com" rel="nofollow ugc">https://www.google.com</a><br />
-&gt;<br />
Very simple direct link to <a href="https://www.google.com" rel="nofollow ugc">https://www.google.com</a></p>
<p dir="auto">This is a simple [here](<a href="https://www.google.com" rel="nofollow ugc">https://www.google.com</a>) link<br />
–&gt;<br />
This is a simple <a href="https://www.google.com" rel="nofollow ugc">here</a> link</p>
<p dir="auto">This is a simple [here](<a href="https://www.google.com" rel="nofollow ugc">https://www.google.com</a> “go Google!”) link with custom hover pop-up text<br />
-&gt;<br />
This is a simple <a href="https://www.google.com" title="go Google!" rel="nofollow ugc">here</a> link with custom hover pop-up text</p>
<p dir="auto">-------------------------------------------------------------------------------</p>
<p dir="auto">images (not links to images) embedded in the post:</p>
<p dir="auto"><s>![ ](<a href="http://i.imgur.com/QTHZysa.png" rel="nofollow ugc">http://i.imgur.com/QTHZysa.png</a>)<br />
-&gt;<br />
<img src="https://camo.nodebb.org/4913b963dbeef607baa9b9832849a588ecbc8748?url=http%3A%2F%2Fi.imgur.com%2FQTHZysa.png" alt=" " class=" img-fluid img-markdown" /></s></p>
<p dir="auto"><em>2024 moderator update: <a href="/topic/21925">see our more-recent FAQ: Formatting Forum Posts</a>: embedding images from imgur no longer works reliably; but unlike in 2017, you can just paste your image directly in the Forum post without using an external host, anyway.</em><br />
-------------------------------------------------------------------------------</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26095</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26095</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 18 Dec 2024 14:28:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Thu, 03 Aug 2017 13:39:29 GMT]]></title><description><![CDATA[<p dir="auto">Doh! Undone by my obsessive dislike of automatic line/paragraph spacing!!</p>
<pre><code>Thanks MaDill
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/26094</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26094</guid><dc:creator><![CDATA[moon6969]]></dc:creator><pubDate>Thu, 03 Aug 2017 13:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to Markdown code on this forum? on Thu, 03 Aug 2017 11:45:25 GMT]]></title><description><![CDATA[<p dir="auto">add an empty line after “…respectively:”</p>
<p dir="auto">The next 2 lines start with 8 and 12 spaces respectively:</p>
<pre><code>    if not “mnFixedFindFilename” in globals()
        globals()[“mnFixedFindFilename”] = notepad.getCurrentFilename())
</code></pre>
<p dir="auto">but the preview window steals my spaces and formats as normal…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26091</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26091</guid><dc:creator><![CDATA[MaDill]]></dc:creator><pubDate>Thu, 03 Aug 2017 11:45:25 GMT</pubDate></item></channel></rss>