• Seatch text file add leading 0 to single digit number

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    You could try something like this (be sure to check Regular expression in the Replace dialog):

    Find what: ([^0-9])([0-9][^0-9]) Replace with: \10\2

    It finds any character that is NOT in the set [0…9] followed by a character that is, followed by any character that is not. That gets replaced by the first character found, a “0”, and the last 2 characters that were found.

  • Error Saving

    4
    1 Votes
    4 Posts
    3k Views
    John BowmanJ

    In Settings > Preferences > Editing you can set the Default Directory to the Documents folder (or any folder you want)… that might be what you are looking for.

  • Function parameters hint for custom functions

    3
    0 Votes
    3 Posts
    3k Views
    Grega SeverG

    Thank you!

  • i know this must seem simple but i need help with regex (formula)

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Joe BlowJ

    Ok figured that one out as well…thanks all that helped over these few months

  • need help with....

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Joe BlowJ

    ok I figured it out…i just had to slightly modify the formula guy sent me a day or so ago

  • Running all programming languages at the same time

    6
    0 Votes
    6 Posts
    5k Views
    PeterJonesP

    The simplest answer is, you don’t (add c++ or php or … to HTML, or run any of it in Notepad++). It appears you have a fundamental misunderstanding of how a page gets from a webserver to your web browser. This isn’t the forum for the details, but here are some hints. (It’s not rigorous… just some thoughts to get your mind moving in the right direction.)

    Notepad++ is an editor, which you can use to edit the source code (for your HTML, CSS, JS, C++, PHP, Python, Ruby, Perl, etc). Once you have the source code, you can often debug them locally (assuming you have the appropriate tools) – but the end result is usually viewed through a local browser looking at your local copies or thru a local browser requesting the documents from a development server; Notepad++ can be given hooks to do portions of the testing (it can send source code to your c++ compiler; using the Preview HTML plugin, it can render into your Notepad++ window, so you can see gross functionality of the HTML; it can open the current HTML in your favorite or least favorite web browser using Notepad++'s Run > Launch in Firefox and similar, etc) – but Notepad++ doesn’t “run” the HTML+CSS+JS: it launches the helpers to do their thing.

    Now for some more clearing up, regarding your questions about the other programming languages you mentioned: browsers (primarily) understand HTML, CSS, and JS. The server understands C++ (after it’s compiled), PHP, ASP, Python, Ruby, or Perl – those server-side technologies are used to generate HTML, CSS, and JS (or you can just have static HTML, CSS, and JS as files on the server). The server side code (C++, PHP, …) can be programmed to access a database using SQL or similar query languages, and manipulate the server-generated (non-static) HTML, CSS, and JS. (I think I’ve even heard that you can directly query a remote database using JS from the browser, but I don’t have much experience with that.)

    The server side code will generate HTML/CSS/JS, often using inputs from forms submitted from the browser back to the server, and serves this HTML/CSS/JS to the browser. The browser interprets the HTML and CSS (and XML, XSS, …) to format the information from the server, and can run the JS locally (which can manipulate the HTML and CSS inside the browser and thus change what’s there locally).

    To test a fully featured website, with server-side code, databases, and HTML/CSS/JS output, you will need basically another server: all the same tools with the same configuration on a local machine, or a second “development” server remotely accessed, or a private/hidden development area on the existing server to make sure you don’t mess up the released website. Once it’s all fully tested, then you release it to your production website, and away it goes.

    There’s a lot more to all of this, none of which is on topic for a Notepad++ forum. If you need more, find some good books or classes on web development.

  • Regex for function list in user defined language

    8
    0 Votes
    8 Posts
    9k Views
    John BowmanJ

    I have a very similar situation and am having a rough time getting the proper regular expressions in my functionList.xml for my user defined language. Here are some details and examples:

    Functions are defined with the (always case insensitive) word “def” and may or may not be preceeded by a 5 digit number. all function names must start with “fn”
    If a function has parameters they are included in parenthesis after the function name. Parameters will be seperated by commas. However one semi-colon may seperate all the optional parameters from the required ones (instead of a comma)
    Examples

    def fnwhat3ver
    00100 def fnAnotherExample
    DEF FNwithParameters(arg_number,arg_string$)
    00200 Def FnWithOptional(par_12;par_option_3)

    I really appreciate any help on this matter. I am a long time user and lover of Notepad++ and hope to implement this feature for myself and to win over some new n++ users.

    -John

  • 0 Votes
    2 Posts
    2k Views
    John BowmanJ

    I believe you need to install the notepadd++ as PORTABLE. Once you do that than it will look to the working directory for it’s userdefined languages and such. Then, once you have it all set up, you can zip up and ship out that whole directory with all the settings, etc. Hope this helps.

  • Notepad ++ crashing, leaving 0 byte file behind (and agitated writer)

    2
    0 Votes
    2 Posts
    2k Views
    Louis PrivéL

    I would recommand to try uninstall Notepad++, reboot the computer, verify there isn’t any files in all Notepad++'s folders (C:\Program Files (x86)\Notepad++, and %appdata%\Notepad++) and then reinstall it.

  • Notepad++ some hotkeys not working

    2
    0 Votes
    2 Posts
    3k Views
    Kenig BanK

    Solved.
    It turns out, “HOME” key in keyboard is always pressed :D

    P.S. Sorry for my bad english (google translate)

  • Remove Word Highlighting

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    John WarrenJ

    Thanks for your help

  • help with formula

    6
    0 Votes
    6 Posts
    3k Views
    Joe BlowJ

    ps the file is safe to download i used several virus programs…
    windows must not like that site…or maybe its just my windows that doesn’t like it, … just click and override the notice to download.

    i have uploaded it to a new site, in case you don’t want to download that one…

    http://www.filedropper.com/example1

  • Notpad++ macro switching views/files

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Help with formula

    5
    0 Votes
    5 Posts
    3k Views
    Joe BlowJ

    ok I’m getting flagged as spam (not sure why) so I’m going to try to post this…

    thanks guy038
    question
    I need to add in two lines of text
    training 57
    and
    tazertrained true

    after the line:
    BodyArmour StabVest

    and before the line
    END

    do you know how to add in the two last lines
    note: they should be indented

    http://www78.zippyshare.com/v/r6Sh5S7m/file.html
    screenshot

  • Edit default assembly language's syntax

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • cursor movement in right-to-left mode

    8
    0 Votes
    8 Posts
    6k Views
    YaronY

    Hello David,

    You’re welcome.

    NPP is undoubtedly a great editor. Combining Latin and Hebrew, however, is much easier with EditPad.
    It is a developer editor and you can set a custom syntax highlight.

    I use a toolbar button in both editors to open the current file (and line) in the other editor.

    In NPP:
    <Command name="פתח ב- EditPad..." Ctrl="no" Alt="no" Shift="no" Key="0">&quot;C:\Program Files\EditPad Pro\EditPadPro7.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot; /l$(CURRENT_LINE)</Command>

    and in EditPad:
    "C:\Program Files\Notepad++\NP\notepad++.exe" "%FILE%" -n%LINE%.

    Best regards.

  • UDF2 problem (or not?)

    Locked
    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • System.BadImageFormatexception notepad++.exe 5512

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    A quick Google search…

    A BadImageFormatException exception is thrown when the file image of a DLL or executable program is not valid.

    I would uninstall Notepad++ and any make sure to remove any DLLs before reinstalling.

  • selected text color doesn't change

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Find the last occurence before a condition

    Locked
    9
    0 Votes
    9 Posts
    5k Views
    Mario NebiajM

    Thank you for your time and your answers.
    I’ll try to make it work; I don’t know how to mark this topic as solved by the way.