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

  • Need help to find different font in same text file through notepad++

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    guy038G

    Hello kapil kadane,

    Rather easy ! Follow the few steps below :

    Open Notepad++

    Select the menu option Settings - Style Configurator…

    Select Global Styles in the Language panel

    Select Default Style in the Style panel

    On the right, in the drop-down list Font name, choose one of the installed fonts, on your system

    Click on the Save & Close button, in order to valid this new default text font

    OR

    Click on the Cancel button, if you just wanted to see the appearance of the text, with the different fonts selected

    Just beware that there are two main categories of fonts :

    The monospaced fonts, as Consolas, Courrier New, Source Code Pro,…, which use the same physical length to write a character

    The proportional fonts, as Times New Roman, Arial, Verdana,…, which adapt the physical length used, to each written character

    To, easily, notice the difference, just insert the four lines, below, in your text. If these four lines have the same length, your present font is a monospaced one. If NOT, you, presently, use a proportional font !

    iiiiiiiii
    IIIIIIIIII
    wwwwwwwwww
    WWWWWWWWWW

    Best Regards,

    guy038

  • 0 Votes
    4 Posts
    5k Views
    DaveyDD

    @Pete-Norris,
    Even easier - you can just set a keyboard shortcut to trigger the function parameter hint. It works as long as the cursor is between the parenthesis.
    You can see this in the menus under Edit > Auto Completion > Function Parameters Hint
    Just use the shortcut mapper to create a keyboard shortcut.

    David

  • NPP 6.9.2 has no css, html language plugins?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Peter-Strempel

    depends what you mean by language support.
    If you select HTML from the language menu then you get coloring and folding.
    If you install emmet plugin you get well, emmet.
    If you install XMLtools you can “pretty print” your code.
    If you install preview html plugin you get a preview mechanism …

    Cheers
    Claudia

  • Macro for date+time

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Walter-Conti

    maybe this one?

    Cheers
    Claudia

  • font size

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @cheryl-reckner ,

    Alternately, Settings > Style Configurator > Language:Global Styles > Style:Default style > Font size = ___ > 'Save & Close`

  • 0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @CatPurrfect

    unfortunately it looks like a bug.
    A “per npp start” workaround is to uncheck the default quote in settings dialog and define it as user defined,
    but as soon as you restart it doesn’t work again.
    Another solution might be to use a python script to do the auto inserts.
    Could look like this

    dict_complete_char = {'"':'"','(':')','{':'}'} def callback_CHARADDED(args): if(args.has_key('ch')): if dict_complete_char.get(chr(args['ch'])): editor.insertText(editor.getCurrentPos(), dict_complete_char.get(chr(args['ch']))) editor.clearCallbacks([SCINTILLANOTIFICATION.CHARADDED]); editor.callback(callback_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED])

    In dict_complete_char you would define the pairs which should be inserted.

    Cheers
    Claudia