• How do I find some text but skip some other slightly different text?

    22
    0 Votes
    22 Posts
    1k Views
    Scott NielsonS

    @Alan-Kilborn Sorry, that should be, -</span>(*SKIP)(*F)|(?s)(?<=mso-ansi-language:EN-US'>)-(.*?) *(?=</span>) - I forgot to copy the last RegEx and your system doesn’t let me edit what I post after 3 minutes!

  • 0 Votes
    12 Posts
    3k Views
    bofhlusrB

    @PeterJones said in 3 Newbie questions: cursor and folder margin disappeared and selective line editing in a file:

    @George-Jereza ,

    It would have been nice if you’d also copy/pasted the text and clicked the </> button, like I asked. But when I retyped that whole thing, I didn’t see what you were seeing.

    Then I realized: you don’t actually have the Lua syntax highlighter selected for that .bp file, because there isn’t even the column for the folding indicator, and your numbers have no color to them. That is, it looks like this screenshot:
    6559a482-813b-40f0-92cf-43dec5f4faee-image.png

    Notice that the lower left corner, and the Language menu, both indicate Normal Text rather than Lua. If you set Language > L > Lua,
    9762beb5-9ddb-4bd7-a360-f145eed15a03-image.png
    Then you can see “Lua source file” in the lower-left and Language > L > Lua is indicated as selected in the menu system; further, if you look now
    3e694cdc-24cd-42af-a906-64fb1114bacc-image.png
    … you can see that true is blue, as a known constant; the number values are orange; and there are fold markers in the left column.

    The reason why the .bp file doesn’t default to Lua is because that’s not a standard Lua extension. If .bp files should always be “Lua” for you, then you need to tell Notepad++ this: go to the Settings menu, click Style Configurator; in the “Language” box on the left, select “Lua”; in the “User ext. :” box at the bottom, type bp (no dot); then click save-and-close.
    7492592b-d7e3-41d7-bcc3-52962611a9b5-image.png
    From now on, when you open a .bp file, it will recognize it as Lua and highlight appropriately; further, if you create a new file and Save As something.bp, it will also start hightlighting as Lua after the save is complete.

    Plugins : LuaScript.dll mimeTools.dll NppConverter.dll NppExport.dll

    Given that your Debug Info showed Lua Script plugin is installed, I think you do know how to install a plugin … or at least, someone explained it to you at one point, because you have an extra plugin installed.

    like they have it in Microsoft Word’s Navigation Map

    Like @Ekopalypse said , the Notepad++'s Document Map isn’t quite the same feature as MSWord’s Navigation Map. MSWord’s Navigation Map uses word-processor HEADER# format indicators to create a navigatable Table of Contents. Notepad++'s Document Map just takes the whole document and shrinks to the tiniest font it can render, and shows a highlighted section to let you know what’s on screen by giving you an unreadable “overview”, so you can see approximately where in your document you are. If you don’t find that useful, don’t use it.
    4c6fa616-0caf-4250-a225-984d8e9497e1-image.png

    Notepad++ does have a feature called “Function List” (View > Function List will toggle it) which shows you the functions (and classes) in your source code. But since your .bp files appear to be using Lua syntax for just storing data structures[1] (kind of a Lua-based[2] config language similar to “JSON” – but using Lua syntax instead of JavaScript syntax), rather than as a full-blown programming language, then you don’t have any functions (or classes). If you did, it would make it easy to navigate to each function (which is as close as source files come to having “headers” from word-processing nomenclature).

    [1: Looks like a video-game config file to me. We’ve seen some search-and-replace queries in video-game configs recently. I wonder if there’s been one or more more easily-moddable games released recently.]
    [2: I say “Lua-based” loosely, because the Lua syntax highlighter was not highlighting the comments, which a quick google tells me are actually -- indicated, not #. So now I’m wondering if it’s really not Lua-based, or if it would be better to pick some other language for syntax highlighting for your .bp blueprint files.]

    @PeterJones Sorry for not providing text to the sample but thank you very much for re-typing the whole thing!

    Yes, the sample file I showed you is a gaming file. And yes it is a lua file. The game is decades old with a very active modding community (‘mods’ are like add-ons or plug-ins).

    I became familiar with Npp plugins after you provided me the link to the Npp manual and after I quickly scanned the Npp owner’s guide. I thought that a text editor that mentions the word ‘sex’ in its cover page has really something to offer and therefore worth checking out. Lol.

    The reason why I thought I had a problem was because I did change the language setting in the Configuration Style but nothing instantly changed on screen unlike other settings. It was not clear that I had to quit Npp before the change would reflect onscreen.

    BP is an acronym for BluePrint. It is a lua file. The game modders just extended the lua syntax by adding ‘#’ for comments.

    https://wiki.faforever.com/index.php?title=Modding

    Btw, if you or anyone is stressed out, I found that this particular game, --having real physics in its ballistics (eg. nukes, artillery, etc.) and is very moddable might help take your mind off more serious stuff. In my opinion shared by lots of others, it’s the only real time strategy game that and still exists. There’s lots and lots of videos in YouTube on the game.

    Thank you for your help and excellent reply.

  • All Files Gone After Updating to 8.1.2

    3
    0 Votes
    3 Posts
    172 Views
    Ryan LatoR

    Thank you @PeterJones I was able to get them back. I will make sure I don’t leave unsaved notes open when updating. It has never happened before and the one thing I love about NotePad++ is I don’t have to save my notes, but I guess there is always a downfall

  • 3P : Progress Programmers Pal autocomplete seems to use old dir structure

    4
    0 Votes
    4 Posts
    339 Views
    artie-finkelsteinA

    @William Patton - I’m not a user of 3P, but I do note that they do seem to keep their plugin updated to follow major changes in Notepad++. Are you sure your editor version, the installed plugin version and the plugin directory structure are of similar vintage?

  • How do I replace some text?

    13
    0 Votes
    13 Posts
    475 Views
    Scott NielsonS

    @Alan-Kilborn OK, thanks a lot! Hasta la vista.

  • Adding line breaks to fixed width table

    13
    0 Votes
    13 Posts
    2k Views
    Terry RT

    @Stinson-s-Stationers said in Adding line breaks to fixed width table:

    It didn’t even occur to me that DBF would be a standard file type i could find a specific viewer for.

    Yes, in fact it is one of the oldest file types, first created in in the early 1980s, see here. It is still possible that it doesn’t actually correspond to the acceptable format known, but certainly worth a try using one of the free viewers.

    File extensions don’t restrict developers to an acceptable format but most will do so. I just feel that using Notepad++ for a task it is not designed for (editing what is essentially a binary file) is looking for trouble. 99% of the time it will work (as this binary file is mostly just the text records with a binary header), but just once you will find your transformation will produce bad data. If you are not doing extensive data checks every transformation, it could have dire consequences.

    As you say this is company data, so you need to be certain the output is valid. Using the right tools for the job is central to achieving this.

    Terry

    PS creating a robust process means it can be easily handled by anyone who can click few buttons,so less chance in the future something could go wrong

  • Problem with style token

    7
    0 Votes
    7 Posts
    5k Views
    Markus SulkM

    @PeterJones
    Thank you so very much for your time and effort!
    Now I can make sure that npp works in the way I want it to.

  • How to Remove Everything after a Character

    2
    0 Votes
    2 Posts
    8k Views
    Alan KilbornA

    @THEAmIkO

    find: (?s)\|.*
    replace: leave empty
    search mode: regular expression

  • 0 Votes
    2 Posts
    273 Views
    TroshinDVT

    @Willie-Venter said in Add a function to split a large text file in two or more separate text files.:

    Is it possible to add a function to split a large text file in two or more separate text files by specifying line numbers where it should break?

    Можно реализовать на javascript с пом. jN плагина. Благо задание - простое.
    You can implement JavaScript using the plug-in JN. Fortunately, this task is simple.

  • Regex: Find only one line, from 2 similar lines (html tags)

    15
    0 Votes
    15 Posts
    638 Views
    astrosofistaA

    @Alan-Kilborn

    My guess is that OP used the spaces as a sort of word delimiter, but who knows.

    astrosofista is the nick I used on Twitter for an account that was indeed about space related topics. Since I used that account to register for this forum, I left the same nick.

    And although I like astronomy very much, I am not an astrophysicist. My academic studies are in philosophy. I have been teaching an introductory course in propositional logic and philosophy of science for twenty years. And now I am close to retirement - I will have more time to play with regex, scripting and the like.

  • Please reinstall NotepadStarter

    8
    0 Votes
    8 Posts
    5k Views
    ferak rahimF

    @litos81 It’s work. Thank you Dear :)
    LIKEEEEEE

  • Searching a Notepad++ version

    2
    0 Votes
    2 Posts
    196 Views
    PeterJonesP

    @Unique-ForEternity said in Searching a Notepad++ version:

    What I ask is please give me a download link of the version of school that I attend.

    No such download exists from the official distributor of Notepad++.

    You will have to ask your teacher how they configured Notepad++ at school. My guess is that they are using the NppExec plugin to run the external java compiler, and then use Customize Toolbar plugin to add that NppExec script as a button on the toolbar.

    For example, I have an NppExec script that I call “Java-CompileAndRun” with the script

    NPP_SAVE cd "$(CURRENT_DIRECTORY)" "C:\Program Files (x86)\Java\jdk1.8.0_51\bin\javac" $(FILE_NAME) "C:\Program Files (x86)\Java\jdk1.8.0_51\bin\java" -classpath "$(CURRENT_DIRECTORY)" $(NAME_PART)

    This saves the active file, then uses the Java JDK javac to compile, and the java command to run the compiled output

    But that’s just a guess as to what they did. As I said, you will have to ask your teacher how they customized Notepad++ (or explore the various configurations and menu entries in the school’s Notepad++ to figure it out for yourself).

  • Style Tokens wont highlight partial words

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Alan-Kilborn ,

    It is really unfortunate that the term “style” is used,

    Yes, the naming of that feature was confusing, and is now even more so. Aside from “Mark” vs “Mark”, as you’ve already pointed out: In the Search menu, it’s called Mark All (and now also the new Mark One). In the context menu, it used to be Style token / Remove Style and now Style all occurrences of token / Style one token / Remove style. So the Search menu and Context menu use different names. (But it was confirming this that finally explained to me why so many thought of it as “Style Token” – because that’s what the context menu called it.)

    I have started the process of adding “Style Token” to the description of the Mark All settings in the online user manual – hopefully, it will be included in the next release

  • Makro oder Programm für wiederkehrende Änderung.

    8
    0 Votes
    8 Posts
    2k Views
    Steve HaedeS

    @Alan-Kilborn said in Makro oder Programm für wiederkehrende Änderung.:

    @PeterJones said in Makro oder Programm für wiederkehrende Änderung.:

    Please use English as the primary language in this forum.

    I guess this was ignored. :-(
    It’s easy enough for the reader to “Translate to English”, but I still think the onus is on the poster to post in English.
    I for one won’t be doing any translating on the reading end in order to answer non-English posts.

    Hello Alan, es gibt bestimmt mehr Menschen die Chinesischs sprechen und schreiben.
    Also sollte man alles ins Chinesiche Übersetzen, aber Achtung, dann könnt ihr gleich den Block schließen, weil ihr(du) tausende ausgrenzt.
    Der Link aus meinen Notepad++ geht hier in.
    Probleme sind das!!!

  • Cannot disable tab to space

    5
    0 Votes
    5 Posts
    2k Views
    Markus HirschM

    Dam it, it was too simple. Thanks!
    Works now.

  • Determining supporting library versions

    4
    2 Votes
    4 Posts
    269 Views
    artie-finkelsteinA

    @PeterJones
    Thank you for the pointer to the historical Changes page, that was a nice place to go spelunking. For the present and near future I will resort to manifest constants to flag the current versions, so I can refer to the proper historical documentation pages (packages actually) and avoid the temptation to use a new Scintilla feature not yet supported in Npp.

  • 0 Votes
    4 Posts
    275 Views
    mere-humanM

    Try rebooting your PC. It may help.
    You can also see additional info about the same problem here:
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9760

  • Make files lists and open files from these lists

    4
    0 Votes
    4 Posts
    3k Views
    mere-humanM

    Also, if you just need to open a list of files, try passing the list through the command line. Example:
    "C:\Program Files (x86)\Notepad++\notepad++.exe" "S:\file1.txt" "S:\file2.txt" etc

  • Change.log Tab

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP

    @IAmYouthoober ,

    The original poster was only ever logged in once (according to the forum’s @Abhishek-Mehta user profile), so probably never saw my response, let alone your question a year later.

    What problem are you really having? Could you describe what you did, the behavior you expected, and the behavior you actually got?

  • Python plugin not working correctly

    5
    0 Votes
    5 Posts
    420 Views
    DaveyDD

    @Ekopalypse - thanks again
    I think you are correct. I was confusing the current ‘position’ with the number of characters in the selection.
    That, together with a funny bug in my code, was making me think there was a problem.

    Thanks,
    David