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
    • donhoD

      Notepad++ release 8.9

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      24
      4 Votes
      24 Posts
      2k Views
      PeterJonesP

      @joemidnite said in Notepad++ release 8.9:

      it does not address the 2nd JavaScript theme. Would the new install delete the 2nd theme, or should I delete both before I do the update?

      I don’t know what you mean by that. The instructions tell you how to fix JavaScript in your active theme.

      Specifically, it says, and I quote, “You can just copy the entire <LexerType name="javascript.js" desc="JavaScript" ext="">...</LexerType> section from the downloaded theme(s) and paste it overtop that same section in your Config Directory and/or Installation Directory theme file(s), then save and restart to get it to take effect.”

      So you download the newer file to some temporary location and open it. Then you open your active theme (in either the install directory or AppData, depending on whether you’ve customeized your theme or not), and you paste the javascript.js section from the temporary file overtop the javascript.js section from your active file. Then you save, and restart Notepad++.

      if you haven’t customized your theme at all (no changes to font or color or user keywords or user extensions anywhere), then it’s even easier: just download the file, and save it in your install directory’s themes subdirectory, and restart.

    • Craig W.C

      Turn Off Paragraph Highlighting

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      28 Views
      CoisesC

      @Craig-W said in Turn Off Paragraph Highlighting:

      How do you turn off the automatic highlighting of anything you are typing. I went to settings and turned de-selected everything under highlighting, and it hasn’t changed anything. I don’t want the background highlighted as I type or have to go to a previous paragraph and it’s all highlighted.

      Try changing Settings | Preferences | Editing 1 | Current Line Indicator to None.

    • Eugene BrennanE

      Simple Question: Can I View HTML Tags?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      34 Views
      CoisesC

      @Eugene-Brennan said in Simple Question: Can I View HTML Tags?:

      Surprisingly, it appears difficult to find an answer to this from Googling. I want to migrate articles from a website to Blogger. I’m using Reader View in Firefox which strips a lot of the superfluous stuff on the source website and then I paste to Notepad. From there I copy and paste to Blogger. Now this strips all HTML tags and when I post from Notepad to Blogger, all the content is enclosed by a single <p> tag and multiple <br /> tags within the text. I can’t paste directly from the source website to Blogger because it brings in a lot of unwanted HTML stuff from the previous website. This causes multiple problems that I won’t detail here, mostly as regards inserting images into the text. So my question is, does Notepad++ strip all HTML (I can’t find any way of changing to HTML view mode like I can in the Blogger Designer) and if so, is there a way I could retain at least <p> and <br /> tags?

      Try selecting and copying what you want from reader view, then use Edit | Paste Special | Paste HTML Content in Notepad++. It will still require some cleanup, but it will probably come closer to what you want.

      There is no native HTML view in Notepad++. There is a plugin, but it just shows the HTML as a sidebar; you can’t edit within the formatted text. Personally, I find it easier and more reliable to view the file in Firefox to see how the HTML renders. (I set F5 as a shortcut for View | View Current File in | Firefox.)

    • S

      Help with deleting the the first three lines and the last four lines as a batch for 200 files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      26 Views
      PeterJonesP

      1: How can I tell NP++ to search for multiple different text snippets at once? For example all instances of 45/23 31/89 and 21/77 should all be replaced with 66/55

      (a|b|c) will match a or b or c, so for the exact three you said, it would be (45/23|31/89|21/77) as the FIND and 66/55 as the replace.

      But if you’re not describing it well, and you just want any two-digit fractions of the form ##/## to be replaced with 66/55, then it would be \d\d/\d\d (where \d is regex-speak for “any digit”)

      If neither of those is what you really want, you will need to give more examples of what should and shouldn’t match.

      2: How can I tell NP++ to delete the first three lines and the last four lines (the last line is always empty) of a file?

      First three lines: FIND \A(^.*?\R){3} will match the start of file and the first three lines, and replacing that with empty text will delete them.

      Last four: FIND (^.*?\R){4}\Z will match four lines and the end-of-file, so replacing that with empty text will delete them.

      Fancy: do both with the | to say “either/or”, so FIND = \A(^.*?\R){3}|(^.*?\R){4}\Z

      (don’t have . matches newline enabled)

      All of that syntax is described in the User Manual regex section, so if you want more details, you can load that page and use your browser to search for \A or \Z or similar; the concepts used were anchors (for beginning/end of file), multiplying operators (for doing N lines), and groups (so the multiplying operators apply to the entire-line matcher)

      200 files

      Regex will work in the Find in Files, which is how you make it apply to that many files. But try it in one open file first, to make sure it does exactly what you think. And for bulk operations, always keep a backup, in case things don’t go as you expected.

      ----

      Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
    • h-jangraH

      NppVim 1.8.0.0 Release

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      1 Votes
      1 Posts
      46 Views
      No one has replied