Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • PeterJonesP

      [ALPHA] Upcoming Plugin: HiddenLexers

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      7
      1
      2 Votes
      7 Posts
      43 Views
      PeterJonesP
      I was able to find an example lexer that had an option that I could see the effect of, so was able to confirm that I seemed to be processing correctly. v0.0.1.1-dev add options processing example JSON: { "extensions": { "md": "markdown", "markdown": "markdown" }, "lexers": { "markdown": { "0 SCE_MARKDOWN_DEFAULT" : { "fgColor": "", "bgColor": "", "fontStyle": "0" }, "1 SCE_MARKDOWN_LINE_BEGIN" : { "fgColor": "DADADA", "bgColor": "", "fontStyle": "0" }, "2 SCE_MARKDOWN_STRONG1" : { "fgColor": "EECCAA", "bgColor": "", "fontStyle": "1" }, "3 SCE_MARKDOWN_STRONG2" : { "fgColor": "EECCAA", "bgColor": "4F4F4F", "fontStyle": "1" }, "4 SCE_MARKDOWN_EM1" : { "fgColor": "AADDFF", "bgColor": "", "fontStyle": "2" }, "5 SCE_MARKDOWN_EM2" : { "fgColor": "AADDFF", "bgColor": "4F4F4F", "fontStyle": "2" }, "6 SCE_MARKDOWN_HEADER1" : { "fgColor": "FFFFFF", "bgColor": "8F8F8F", "fontStyle": "1" }, "7 SCE_MARKDOWN_HEADER2" : { "fgColor": "CCffff", "bgColor": "7F7F7F", "fontStyle": "1" }, "8 SCE_MARKDOWN_HEADER3" : { "fgColor": "CCbbbb", "bgColor": "6F6F6F", "fontStyle": "1" }, "9 SCE_MARKDOWN_HEADER4" : { "fgColor": "CC7777", "bgColor": "5F5F5F", "fontStyle": "1" }, "10 SCE_MARKDOWN_HEADER5" : { "fgColor": "CC3333", "bgColor": "4F4F4F", "fontStyle": "1" }, "11 SCE_MARKDOWN_HEADER6" : { "fgColor": "CC0000", "bgColor": "3F3F3F", "fontStyle": "1" }, "12 SCE_MARKDOWN_PRECHAR" : { "fgColor": "5F5F5F", "bgColor": "4F4F4F", "fontStyle": "0" }, "13 SCE_MARKDOWN_ULIST_ITEM" : { "fgColor": "0000CC", "bgColor": "4F4F4F", "fontStyle": "0" }, "14 SCE_MARKDOWN_OLIST_ITEM" : { "fgColor": "0000CC", "bgColor": "4F4F4F", "fontStyle": "0" }, "15 SCE_MARKDOWN_BLOCKQUOTE" : { "fgColor": "00CC00", "bgColor": "4F4F4F", "fontStyle": "0" }, "16 SCE_MARKDOWN_STRIKEOUT" : { "fgColor": "6F6F6F", "bgColor": "", "fontStyle": "0" }, "17 SCE_MARKDOWN_HRULE" : { "fgColor": "FFFFFF", "bgColor": "0020C0", "fontStyle": "0" }, "18 SCE_MARKDOWN_LINK" : { "fgColor": "8F8FFF", "bgColor": "", "fontStyle": "4" }, "19 SCE_MARKDOWN_CODE" : { "fgColor": "FFFF00", "bgColor": "6F6F6F", "fontStyle": "0" }, "20 SCE_MARKDOWN_CODE2" : { "fgColor": "FFFF00", "bgColor": "6F6F6F", "fontStyle": "0" }, "21 SCE_MARKDOWN_CODEBK" : { "fgColor": "FFFF00", "bgColor": "6F6F6F", "fontStyle": "0" }, "options": { "lexer.markdown.header.eolfill": "1" }, "keywords": [ "", "", "", "", "", "", "", "", "" ] } } } I verified the functionality using AllStyles.md from the lexilla test suite in N++ codebase; I can change from "1" to "0" and watch the header lines change: “1”: [image: 1785970812667-7a8b4e58-b893-4fb8-bb9a-6e5ca3f67618-image.jpeg] “0”: [image: 1785970837986-3c97a3c7-7586-4d10-9666-625450717e3d-image.jpeg] So I believe that options are implemented now. Also, this one is in a release tag, so you can either find the artifacts as before, or you can download a normal PluginsAdmin-style zipfile which can be unzipped and the DLL installed, as with any normal manual plugin installation.
    • ILoveSkilledCodersI

      Updated NP++ and now lost my previous notes

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      238 Views
      PeterJonesP
      @ILoveSkilledCoders said: Unfortunately I don’t understand some of what you said. I am sorry. I thought that explaining to go someplace in Windows explorer and rename files would be easy enough to understand. I cannot make it easier to understand than that. I’m trying to find someone to help explain it to me. & I don’t know what you didn’t understand, so I cannot explain more. to edit those files b/c I don’t want to screw things up & make it worse. I didn’t say to edit any files. I said to rename/copy files. I have no idea if I was in admin mode when I updated. That’s unfortunate. … someone told me you came out with the numbers that tell us how many search results there are, … & then which number result we are on after we press “enter.” I need that so I got excited & updated. Unfortunately it’s not in the Ctrl F search window as I found out. That’s with Search > Inremental Search which brings up the Incremental Search Bar at the bottom of the screen. That’s a simplified version of the search which has always been there, but recently the “live count” was added to the Incremental Search I think I learned years ago that you have to click on Ctrl S at least once to save each file, Each time you hit Ctrl+S on a file, it saves it. That’s the only time that Notepad++ saves it to the given directory. If you only hit Ctrl+S on each file once, then it only saved it once in that directory. The “session snapshot and periodic backup” feature of Notepad++ does not save the file to the normal location. It saves it to the backup directory which I referenced before. In the future: If you want to automatically save your updated/edited files without hitting Ctrl+S or File > Save or the Save or Save All button on the toolbar, you would need to install and configure the AutoSave plugin, as described in the FAQ I linked you to. If you don’t want to install and configure that plugin, then you will have to learn to Save your files on your own. but I had them all saved at one point, otherwise they wouldn’t have been in that Notepad++ folder, so I have no idea what happened. You saved them once, and only once. Never again. That’s what happened. On another note, off & on since the update, I keep getting this error, & then there’s another question after this one which I forgot to take a SS of. https://nimb.ws/i9V1zXa Just paste the image into your post: you don’t need to upload it to a service. [image: 1785784094594-115d78d2-de07-43ff-a056-e06450858f4d-image.jpeg] That means some other program had updated Links.txt since the time you opened it in Notepad++. Your choices are to say “YES”, which will read the copy from disk, and get rid of all your edits, or to say “NO” and overwrite whatever is on disk with what’s currently visible in Notepad++. Which choice is right depends on your computer, and we cannot tell you which is right for you to choose. Also, when I click on Ctrl. F, most of the time it doesn’t highlight & place my cursor in the text field so I can type a new keyword. I had no problems with the other one. That’s controlled on Settings > Preferences > Searching, with the Fill Find Field with Selected Text checkbox and the Max Characters to Auto-Fill... number field. Going back to your original problem: you have probably opened and closed Notepad++ too many times for my file-rename procedure to be of any help. So ignore that part for now. Instead, you will need to open your Windows Explorer (WinKey + E – I believe that worked even back in Win7 days), and then paste %AppData%\Notepad++\backup into the Location Bar of the Explorer window. If your Win7 doesn’t show the explorer bar, then you will have to manually go to C:\users\<user name>\AppData\Roaming\Notepad++\backup\ in Windows Explorer. In that directory, there may or may not be a bunch of files with names similar to filename.ext@yyyy-mm-dd_hhmmss, where filename.ext is the name of the real file, and the yyyy-mm-dd_hhmmss is a timestamp that Notepad++ used. If you have a bunch of those, you can copy those to some safe, temporary directory, and then open all those copies in Notepad++. Look through them, If any of them have the data you want for your real files, then save them to the correct filename in D:\Notes\Notepad++. Close any of them you don’t want. Leave the ones open that you saved to D:\Notes\Notepad++. In the future, either use Ctrl+S (or the menu or toolbar equivalent) to save the file when you’ve made an important change, or set up the AutoSave plugin to save your files for you. If you have difficulty setting up AutoSave after reading the FAQ, please let us know which step of the FAQ you are on and having difficulty with. But I’m not going to type step-by-step instructions for you here, because those instructions are already in the FAQ, and it would be a waste of everyone’s time for it to be typed again here.
    • M Andre Z EckenrodeM

      Search++ (\W)'(\w) regex replace failure

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      46 Views
      M Andre Z EckenrodeM
      @Coises said: I know this is a pain, but would you try: In the process of attempting to follow your instructions, I suffered a handful of detrimental (though not catastrophic) NPP-related events. Am I supposed to be able to run the portable copy of NPP while the installed copy is also running? When I tried to open the portable, it just brought my installed copy window to the front, and didn’t open anything new. Then I tried closing the installed copy, but immediately got an error dialog. I was hoping to do a screenshot of it but somehow failed to (it may have been something about my session file having been corrupted, as there was no session restoration when I eventually re-opened my installed copy). Rather than hitting OK or whatever option it gave me in the dialog, I tried opening a new installed NPP instance via my AutoHotkey keyboard sequence so I could take some notes that hopefully wouldn’t be affected by whatever problems the first instance was having at that point, but I then immediately got another error dialog, this one specifically for Search++: A configuration file was found, but it does not contain valid JSON and will be ignored. I hit OK in that one. The new instance opened, and the first error dialog disappeared. I then went ahead and closed the second instance, which resulted in this Search++ dialog: A configuration file found at startup was ignored because this plugin could not use it. Do you want to save the current configuration settings? (If Yes, the old file will be overwritten.) I hit YES, and then also closed the first instance. I then finally got the portable copy to open, and tried my regex in it. It all worked.
    • M Andre Z EckenrodeM

      (\W)'(\w) Regex replace failure

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · find repl reg
      3
      1
      0 Votes
      3 Posts
      55 Views
      M Andre Z EckenrodeM
      @Coises said: Notepad++ won’t let the selection that results from a search split a CRLF line ending. Noted, thanks.
    • M

      Using Notepad++ to Organize Game Guides and Documentation

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      407 Views
      PeterJonesP
      @annettekusma said: I also need to be able to move around paragraphs easily during the writing process # header paragraph before paragraph with no enter newlines, but just use line wrap. this allows you to use Ctrl+Shift+Up/DownArrow to move it up or down paragraph after [image: 1785854639307-moveparagraph.gif] I might want to have a couple of textfiles for the larger documentparts though, but I would want to drag a pragraph from one document to another. You would have to have both files open in Notepad++ tabs, and drag the text across between views (or use cut from one tab and paste into the other) automatically created table of contents, That is a word processor / desktop publishing software feature, not a feature of a text editor. Notepad++ can show the list of “functions” in the Function List panel, and for Markdown, I have headers defined as functions ⇒ here is the simplistic functionList definition I use for Markdown. If you put it in %AppData%\Notepad++\functionList as udl_markdown.xml, and then add <association id="udl_markdown.xml" userDefinedLangName="Markdown (preinstalled)"/> in your overrideMap.xml file in the same directory (if you don’t already have one there, copy c:\Program Files\Notepad++\functionList\override_map.xml into the AppData locaton) . But that is only visible inside Notepad++ itself, is not inherent to the file, and is dependent on having the functionList definition mapped in the overrideMap. You can come close to what you want in Notepad++, but it will never have all the features you have requested, because Notepad++ is a text editor, not a desktop publisher, and to expect a text editor to behave like a desktop publisher is to invite disappointment.
    • G

      Editing lines from vertical to horizontal format

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      118 Views
      G
      @PeterJones ok man Thank you, the method worked.
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      125
      6 Votes
      125 Posts
      38k Views
      CoisesC
      @M-Andre-Z-Eckenrode said: @Coises As you I recently reported an issue with Search++ in a new, separate topic, but I see that several others have reported various issues in this one (presumably, because it’s still a work in progress). I have a new issue to report, and thought maybe I should ask if you prefer that new issues get reported in their own topic (which is generally my default), or for users to just include them in this one. Do you care one way or the other? Either way is OK with me. I suspect the moderators might prefer to keep discussion confined to this topic, though.
    • donhoD

      v8.9.8 Release Candidate will be available in about one week

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      1
      2 Votes
      1 Posts
      139 Views
      No one has replied
    • donhoD

      Notepad++ release 8.9.7

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      7
      2 Votes
      7 Posts
      7k Views
      donhoD
      Auto-updater is triggered for v8.9.7.
    • PeterJonesP

      FAQ: Periodic Backup vs AutoSave Plugin

      Watching Ignoring Scheduled Pinned Locked Moved FAQ backup autosave unsaved faq
      3
      1
      3 Votes
      3 Posts
      28k Views
      PeterJonesP
      Corrupted Session Starting in Notepad++ v8.6.5, it will store session.xml.inCaseOfCorruption.bak next to session.xml, and will automatically use that if session.xml is corrupted. However, if you ever find that you open Notepad++ (especially after an update or a system crash) and find that the files opened weren’t in the same state as when you let them, you can try this procedure: Exit Notepad++ Windows Explorer, go to %AppData%\Notepad++ (or in your appropriate config-file location if you aren’t using AppData for config) Rename session.xml to session.xml--keep Copy session.xml.inCaseOfCorruption.bak to session.xml Run Notepad++ → If it’s now showing the right copy of your files, great! If not, exit Notepad++, delete session.xml, and rename session.xml--keep back to session.xml .
    • D

      Cannot Update Plugins

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      1
      0 Votes
      1 Posts
      127 Views
      No one has replied
    • rafaelloR

      Awesome Notepad++ Configs, settings and syntax highlighting

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      9
      3
      1 Votes
      9 Posts
      3k Views
      rafaelloR
      1.2.2 Syntax highlighting PowerShell Improved absolute, relative, quoted and unquoted paths colors [image: 1785402977913-paths.png] Improved variables interpolation colors [image: 1785402952228-interpolation.png] [image: 1785402954396-interpolation4.png] Added colors for expressions $(..), ${..} Added registry hives colors (HKLM, HKEY_LOCAL_MACHINE, …) Fixed syntax highlighting Fixed variables colors inside paths and quotes Fixed excessive colors of variables, keywords, and functions enclosed in quotes Fixed unexpected sc.. and vk.. colors in AutoHotkey code Disabled colors for variables inside single quotes ' ' (because single quotes prevents var. interpolation)