You have likely been directed here because you have asked about the Change History feature, which is new to v8.4.6: you probably asked something like “how do I get rid of the new orange/red line?” or “when I print, I get a strange orange background”, or something similar.
What is Change History
The new Change History feature tracks the changes made since you last loaded the file: it tracks it with a colorful bar on the edge of the editor window. Changes will be indicated by the orange bar. A green bar indicates that the change has been saved since it was last changed. A pale green (some call it “olive”) indicates that you have done enough undo to get back to a previous save state (as the author calls it, “revert to modified”). A light blue indicates that you have done enough undo actions to get back to the original state of the file from when you loaded that file from disk.
It’s quite useful feature. Similar techniques have been found in other text editors for years, and it’s great that Notepad++ has finally implemented it.
How do I turn it off?
Please give it a chance before you try to turn it off. It really is useful.
But if you insist on abandoning one of the most useful new features of Notepad++, there is a Display Change History checkbox in the Settings > Preferences > Margins/Border/Edge.
You can uncheck the checkbox in the settings and have the change take effect immediately. But if you checkmark the setting again to turn it back on, you will have to restart Notepad++ to take effect… So it’s not a good idea to turn it off and back on frequently. If what you’re really trying to do is just clear the margin for the short term (get it back to a nice clean margin, with no orange or green, equivalent to how it was when you first loaded your file), all you have to do is clear the history, as described in the next section.
How do I clear the history? I want to make it have no orange or green bars!
Since saving the file just turns the bar green, that is insufficient to get it back to a “blank slate”. And File > Reload From Disk will actually turn it all green, not just lines that had been recently changed then saved.
Instead, you can save the file, close it , and then use the File > Recent Files > Restore Recently Closed File or equivlant, which will cause Notepad++ to close reload it from scratch, with no change markings. With default keyboard shortcuts, that sequence would be Ctrl+S then Ctrl+W then Ctrl+Shift+T, so only three keystrokes. If that three-shortcut pattern is too difficult, you can insert the following macro in shortcuts.xml:
To insert the macro: File > Open %AppData%\Notepad++\shortcuts.xml, go to the <Macros> section, and add that macro before the </Macros>. Save. Exit Notepad++. Re-run Notepad++. Now Macro > ResetHistory, or the Ctrl+Shift+H shortcut (mnemonic: “control the History”) will clear the active file’s history.
How do I change the size?
If you find the Change History markers in the margin visually “distracting”, perhaps try leaving them on but minimizing their visual impact. You can do this by using the PythonScript or NppExec plugins; here’s how:
PythonScript: Execute the console window command editor.setMarginWidthN(2, 1)
NppExec: Execute a temporary script consisting of one line sci_sendmsg 2242 2 1
If you want to go the OPPOSITE way, and have maximal visual impact, try changing the 1 in either of the above to 0!
How do I change the color?
The background color is set with Settings > Style Configurator > Language: Global Styles > Style: Change History margin.
Unfortunately, you cannot (yet) change the four foreground colors (though that feature has been requested).
This is a new feature, so it will likely take a few versions of Notepad++ before it is stable. Known issues will be described below, with links to the official bugtracker issue number, and with any known workarounds. You can check the issue links to see if the status for an issue has changed since this FAQ was last updated.
Issue #12281: Due to a bug in an underlying library, if the Change Margin history is visible, then any lines that were changed (or even saved-since-last-change) will get an unexpected background color when printed.
Workaround: Until this bug is fixed in the underlying library and the fix is propagated to Notepad++ and released, you can workaround this problem by clearing the history (see the Clear the History section, above).
The new version v8.4.7 fixes this problem, so install that newer version to avoid the printing issue.
The regex method worked but the trim leading space option doesn’t, with or without selection… any plugin needs to be installed for it to work?
No, no plugin. It works just fine natively in Notepad++.
Some scatter-debug suggestions:
Can you share your ?-menu Debug Info?
Also, can you share a screenshot when the View > Show Symbol > Show all characters… (maybe it’s not actual spaces at the beginning, though then the regex wouldn’t work).
What are your Settings > Preferences > Editing > Line Wrap set at? Maybe you just have wrapped lines, so what you see as the beginning of the line is really the middle of a wrapped line.
Another idea: try downloading a portable copy of Notepad++ and seeing if that works better for you than your installed Notepad++. If so, maybe a plugin has messed up Notepad++, or your installation is corrupted somehow.
All the issues (publications/questions) about binary translation
Thanks. Now you can debug the translation.
Install the file in your notepad++ and check that your translation were not too long. You can start, for example, from the section “preferences” and find dialog.
Nowhere am I discovering these keyboard shortcuts in the docs/in-app (right click or any of the menus). I had to use google-fu to figure them out.
Regardless of the other issues, did you ever think there might be something that identifies these shortcuts, maybe something called “shortcut mapper” which just happens to be under “Settings”. That would seem to be a logical place for it, no? So once in there type something, say “fold” and lo and behold it will list commands that contain that word. Alternatively you can type “Ctrl+Alt” and it will short list those commands containing those keyboard sequences.
PS also there is an online manual, linked from the ?" menu. Shortcut mapper is here.
Download the raw XML into %AppData%\Notepad++\userDefineLangs\go_byAnthonyStarks.xml and restart Notepad++, and you will then have UDL-based syntax highlighting for golang on files whose extension are .go
ha ha, shades of my SYSTEM-80 (a TRS-80 clone) and Atari XT days! I remember ASCII and ANSI being a big thing back in the days of BBS and Netscape. I recently went to the AlternativeTo website and checked out ASCII editors from the past. Many are still there and still work. I sort of miss figlets because it was fun to work with when you got it right.