<?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[Running code in a browser]]></title><description><![CDATA[<p dir="auto">Hi,<br />
How do I get to the code of Notpad++ in order to change the  the cofigeration to allow Firefox and Chrome to run the code in their browsers?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18565/running-code-in-a-browser</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 07:59:34 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18565.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Dec 2019 18:01:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Running code in a browser on Wed, 04 Dec 2019 04:50:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-shaw" aria-label="Profile: Terry-Shaw">@<bdi>Terry-Shaw</bdi></a></p>
<p dir="auto">Follow these steps to run code in a browser:</p>
<p dir="auto"><strong>Step 1:-</strong> The run menu by going to the <code>%AppData%\Notepad++</code> directory.<br />
<strong>Step 2:-</strong> Edit the <em><strong>shortcuts.xml</strong></em> file.</p>
<pre><code>&lt;Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82"&gt;chrome &amp;quot;$(FULL_CURRENT_PATH)&amp;quot;&lt;/Command&gt;
</code></pre>
<p dir="auto">That’s what it reads by default.</p>
<pre><code>&lt;Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82"&gt;%LocalAppData%\Google\Chrome\Application\Chrome.exe &amp;quot;$(FULL_CURRENT_PATH)&amp;quot;&lt;/Command&gt;
</code></pre>
<p dir="auto">That’s what it could read.</p>
<p dir="auto"><strong>Step 3:-</strong> Type this into the run command box:</p>
<pre><code>%LocalAppData%\Google\Chrome\Application\Chrome.exe "$(FULL_CURRENT_PATH)"
</code></pre>
<p dir="auto"><em><strong>NOTE :-</strong></em> <em>if you download the latest version (5.7?), the <strong>Run</strong> menu has four different “Launch in <em>browser</em>” menu item(IE, Firefox, Chrome, and Safari).</em></p>
<p dir="auto">I hope above information will be useful for you.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48901</guid><dc:creator><![CDATA[Prahlad-Makwana4145]]></dc:creator><pubDate>Wed, 04 Dec 2019 04:50:49 GMT</pubDate></item><item><title><![CDATA[Reply to Running code in a browser on Tue, 03 Dec 2019 07:51:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-shaw" aria-label="Profile: Terry-Shaw">@<bdi>Terry-Shaw</bdi></a>  A small addition to the above)))<br />
Edit your <code>shortcuts.xml</code> file<br />
If this browser is installed on your operating system:</p>
<pre><code>        &lt;Command name="Launch in Firefox" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;firefox &amp;quot;$(FULL_CURRENT_PATH)&amp;quot;&lt;/Command&gt;

</code></pre>
<p dir="auto">If this browser is not installed on your operating system (portable version), then you need to specify the full path to the executable browser file:</p>
<pre><code>        &lt;Command name="Launch in Slimjet" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;&amp;quot;C:\Users\Uzeer\Downloads\sjt7z_x64\Slimjet\slimjet.exe&amp;quot; &amp;quot;$(FULL_CURRENT_PATH)&amp;quot;&lt;/Command&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/48868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48868</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Tue, 03 Dec 2019 07:51:28 GMT</pubDate></item><item><title><![CDATA[Reply to Running code in a browser on Mon, 02 Dec 2019 18:12:11 GMT]]></title><description><![CDATA[<p dir="auto">You don’t need to change the code.  If you have an HTML file (or some other web source files, but not others) open in recent Notepad++, go to <strong>View &gt; View Current File In…</strong>, and pick the browser.</p>
<p dir="auto">In a future version (presumably whatever comes after v7.8.1, because <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5903" rel="nofollow ugc">issue#5903</a> was incorporated into codebase on Nov 1), it won’t just be “some other web source files, but not others”, it should be “any file type you want”.</p>
<p dir="auto">If you want a workaround for other formats (like .php or .asp or .txt), or if you have an older Notepad++ that doesn’t have <strong>View &gt; View current file in…</strong> at all, then edit your <code>%appdata%\shortcuts.xml</code> file, as described in <a href="https://community.notepad-plus-plus.org/post/48128">my Oct 29, 2019, 11:50 AM post</a>.  If your shortcuts.xml doesn’t currently have the <code>&lt;!-- ... --&gt;</code> comment marks to delete, just copy the five lines of XML <code>&lt;Command ...&gt;</code> items from that post and paste into the <code>&lt;UserDefinedCommands&gt;</code> section of the shortcuts.xml.  After making the change, exit Notepad++ and re-run, and <strong>Run &gt; Launch in …</strong> entries should exist and work for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48848</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 02 Dec 2019 18:12:11 GMT</pubDate></item></channel></rss>