<?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[Saved terminal text from MobaXTerm not keeping color once opened in Notepad++]]></title><description><![CDATA[<p dir="auto">Is there a plug-in or way for Notepad++ to have my terminal text output from MobaXTerm display the same (color and format etc) once opened in Notepad++?</p>
<p dir="auto">To clarify, when I save my terminal text from MobaXTerm, MobaXTerm by default color codes the text in the terminal which I like.</p>
<p dir="auto">If I save the terminal text in rtf and then open the file in Notepad++, I see things in passages like "\par \cf0\highlight0”, “cf1”, “\cf3\f0 v\cf0”. I’m assuming that’s where color/formatting is suppose to be.</p>
<p dir="auto">If I save the terminal text in plain text format, I get all the text properly formatted exactly the way it looks in MobaxTerm but with no color.</p>
<p dir="auto">If also tried this below (saving the raw data, pasting in Notepad, saving as XML file format, and then importing as UDL in Notepad++ but I only see some text as a blue color not multiple colors like in MobaXTerm.</p>
<p dir="auto"><a href="https://github.com/nakohdo/NPP.RTF/blob/master/userDefineLang_RTF.xml" rel="nofollow ugc">https://github.com/nakohdo/NPP.RTF/blob/master/userDefineLang_RTF.xml</a></p>
<p dir="auto">Is there a way to accomplish this? Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23379/saved-terminal-text-from-mobaxterm-not-keeping-color-once-opened-in-notepad</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 17:28:20 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23379.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Aug 2022 13:02:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Saved terminal text from MobaXTerm not keeping color once opened in Notepad++ on Tue, 16 Aug 2022 12:49:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pro-audio" aria-label="Profile: Pro-Audio">@<bdi>Pro-Audio</bdi></a> ,</p>
<p dir="auto">So, looking at the two screenshots, I’m not convinced that Notepad++ &amp; UDL &amp; EnhanceAnyLexer Plugin is really going to give you what you want.</p>
<p dir="auto">The “rules” that it uses for highlighting seem pretty arbitrary – for example, in the command <code>apt-get install nano</code>, the <code>nano</code> is <em>not</em> highlighted in the command line, nor one line down after <code>package</code>, but a few lines down, the <code>nano</code> after <code>Package</code> <em>is</em> highlighted.  And sometimes the word <code>file</code> is cyan and sometimes purple.  That indicates to me that MobaXTerm might just be accepting the colors that the linux tools themselves are setting, rather than performing its own highlighting.  And there is virtually no way that we would be able to define a UDL+EnhanceAnyLexer combination that would be able to decide, just from the text, what colors each word should be and have it 100% match what you are seeing in MobaXTerm.</p>
<p dir="auto">You could do some things, where you give it a list of keywords like <code>cygwin</code> and <code>libgcc1</code>, etc for cyan coloring, and words like <code>nano</code> and <code>file</code> for purple, then use EnhanceAnyLexer to look for sets of text with no spaces that have multiple <code>/</code> or <code>.</code> between “word” characters… but even that won’t get everything right (like the ellipses not being highlighted).  So if you’re looking for exact color match, it’s not going to happen.</p>
<p dir="auto">As much as I hate recommending a different tool than Notepad++ for the job in this forum, if you a really looking to keep the <em>exact</em> colors for all words for your linux output copied from MobaXTerm, I think you might best be served saving the RTF output, then opening the RTF file with a word processor like WordPad.  (There are times when a Word Processor is the right tool for the job.  And Notepad++ is not a Word Processor.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79166</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79166</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 16 Aug 2022 12:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Saved terminal text from MobaXTerm not keeping color once opened in Notepad++ on Mon, 15 Aug 2022 14:27:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><img src="/assets/uploads/files/1660573642707-f89d381a-ae3a-407a-af5e-f186ecb77b85.jpeg" alt="F89D381A-AE3A-407A-AF5E-F186ECB77B85.jpeg" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1660573642636-80b7aa64-4677-4152-9ff5-817be2627f13.jpeg" alt="80B7AA64-4677-4152-9FF5-817BE2627F13.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">These are just some examples of how MobaXTerm looks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79164</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79164</guid><dc:creator><![CDATA[Pro Audio]]></dc:creator><pubDate>Mon, 15 Aug 2022 14:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Saved terminal text from MobaXTerm not keeping color once opened in Notepad++ on Mon, 15 Aug 2022 14:21:46 GMT]]></title><description><![CDATA[<p dir="auto">Example from internet search:</p>
<p dir="auto"><img src="/assets/uploads/files/1660573174489-0384f899-5f87-4c1b-818b-ca636102fd29-image.png" alt="0384f899-5f87-4c1b-818b-ca636102fd29-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe it provides some idea…but really OP needs to come back and explain what exactly they are looking for.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79163</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79163</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 15 Aug 2022 14:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to Saved terminal text from MobaXTerm not keeping color once opened in Notepad++ on Mon, 15 Aug 2022 14:23:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pro-audio" aria-label="Profile: Pro-Audio">@<bdi>Pro-Audio</bdi></a> ,</p>
<p dir="auto">As Alan said, we can have a more meaningful conversation about meeting your goals once you show us a screenshot of the MobaXTerm text with its colors.  However, I have some background/meta information that will help you better understand some things that your phrasing indicates you don’t fully understand.</p>
<p dir="auto">The <code>\par</code> and <code>\cf0</code> and the others are way that RTF-based word-processors save their color and font information, because like HTML, RTF is a text-based format.  But when Notepad++ edits RTF (or HTML), it shows you the underlying codes, <em>not</em> the pretty formatted text.  (This is by design: it is a text editor, and the codes are part of the text saved in a .rtf file)</p>
<p dir="auto">The RTF User Defined Language (UDL) that you imported (*) defines syntax highlighting for the <code>\par</code> and <code>\cf0</code> and other such codes.  But it will not make Notepad++ turn into a Word Processor and show you the rendered RTF (which is the colored text you were hoping to see, if I’ve understood correctly).  So that UDL is meant for highlighting the fancy codes in the raw RTF source code, just like the HTML parser highlights the HTML codes, or the default Markdown UDL highlights markdown codes.  So to accomplish your goal, saving the RTF and editing in Notepad++ is probably <em>not</em> what you want.  (OTOH, if you save the RTF, and open the RTF with a word processor like the free WordPad that comes with Microsoft Windows, it will “look” more like what you saw.  That’s part of the philosophical difference between a Word Processor and a Text Editor.)</p>
<p dir="auto">*: as an aside, you imported that UDL the hard way. Since the site you linked already has the XML file, you could have just downloaded that file, saved it into <code>%AppData%\Notepad++\userDefineLangs\</code> folder as <code>userDefineLang_RTF.xml</code> and restarted Notepad++, which would automatically bring in that RTF UDL into Notepad++, without all the extra copy/paste/save/import steps.</p>
<p dir="auto">But back to your original problem: in general, if you have something with a list of keywords that will always be made a certain color, or things inside quotes want to be a “quote color”, then it’s really easy to do by defining your own User Defined Language for MobaXTerm.  But if MobaXTerm is just outputting things in arbitrary colors, or based on rules other than simple keyword-matches or “in between quotes”, then UDL might not be powerful enough to accomplish your goal (though UDL + EnhanceAnyLexer plugin might be sufficient). Again, until we know more what MobaXTerm output looks like, we cannot give specific advice.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79162</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79162</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 15 Aug 2022 14:23:12 GMT</pubDate></item><item><title><![CDATA[Reply to Saved terminal text from MobaXTerm not keeping color once opened in Notepad++ on Mon, 15 Aug 2022 13:21:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pro-audio" aria-label="Profile: Pro-Audio">@<bdi>Pro-Audio</bdi></a></p>
<p dir="auto">Probably posting a screenshot of MobaXTerm display output here is a good discussion starter.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79159</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79159</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 15 Aug 2022 13:21:23 GMT</pubDate></item></channel></rss>