• AutoComplete keywords starting with symbols (#, @, $)

    Locked
    7
    0 Votes
    7 Posts
    7k Views
    SmokeyWareS

    Hi @Claudia-Frank ,

    thanks for the help again!

    I have had trouble with the plugin manager before, but it’s no big deal as long as google is still around.
    And the Python documentation isn’t a big problem either, again google will have all the answers ;P

    I did look into Python before as i have a Raspberry Pi, but i have never really done anything with it.
    Most of the time i write simple programs in C#, getting spoiled by MSDN and Intellisense, hehe.

    Your suggestion works great tho, typing @ or # shows all entries in the api file and those from files i import in the script i’m writing.
    I only wish i could start typing in lowercase and get Properly Cased autocomplete entries. I figured that editor.autoCSetIgnoreCase(True) would do this but i might be wrong.
    Also inside the api file the ignoreCase attribute is set to ‘yes’ so it might be a scintilla or npp limitation?
    I might just have to adjust my typing style and not be so lazy ;P
    But i will try sorting the api file tho. (when i have more time)

    Considering autocompleting autoit variables (starting with $) it works ok if i leave $ out of the AdditionalWordChars, i just have to type the first character after the $ and it pops up.

    Comparing VS and npp is like comparing apples and oranges (or as we say in Holland, apples and pears) especially considering the sheer manpower behind VS.
    I didn’t mean to bash npp but i was just a bit annoyed by the trouble i had. Maybe i should have waited a bit before posting.
    Npp is great with all the features and plugins, it puts regular notepad to shame.
    Besides, writing Python in VS isn’t that much better anyway and i still have a lot to learn.

    I definitely see you can do some interesting things with the PythonScript plugin, i’ll have to look into that. And it’s documented pretty well too.
    Thanks!

    If anyone’s interested here’s the script: (fixed)

    def setEditiorOpts(args): # check if this editor already has the WordChars set if editor.getProperty("_isOptionsSet"): return # get current WordChars and append additional chars. add any character you like here, but they may not all work chars = editor.getWordChars() + "@#" # set new WordChars editor.setWordChars(chars) # set a flag in this editor instance to prevent future calls editor.setProperty("_isOptionsSet", True) # manually call because callback will not be run upon start setEditiorOpts({"bufferID": notepad.getCurrentBufferID()}) # register callback to be called whenever the current window changes notepad.callback(setEditiorOpts, [NOTIFICATION.BUFFERACTIVATED])

    (the forum doesn’t want to format the comments properly anymore?)

    It’s possible to detect the current language with editor.getLexerLanguage(), it returns the current language as a string.
    Or maybe you can use NOTIFICATION.LANGCHANGED instead of NOTIFICATION.BUFFERACTIVATED, but i haven’t looked into that.

    Happy Holidays!

  • NodeBB: Why can't I create a separate account?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • ShellExecute failed(2): Is this command correct?

    Locked
    3
    1 Votes
    3 Posts
    6k Views
    James DriskellJ

    Thanks for the insight. I usually run everything as “Administrator” but apparently Notepad++ doesn’t work this way. Unchecked the attribute and now it’s working.

    Jim Driskell

  • Reload file issues

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Matt SM

    The behavior I am looking for can be found by “update silently”. However I still want to receive the yes/no box to reload. This is especially true for large files.

  • Lines missing in edited file ---- but only in Notepad++

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Arizona WillieA

    No I hadn’t hid the lines … it was the first time I used the program.

    No plugins or extras that I’m aware of.

    I went where you indicated and clicked Hide Lines a couple of times and I think on the third time the lines that were hidden came back.

    Thank you very much. Very helpful.

    This program needs a college course on how to run it there is so much in it.

    Way more than I was expecting.

    Notepad++ was mentioned in a game forum and I decided to try it.

    Somehow I had missed the Hide Lines option in the View menu. Probably just going too fast.
    I have a habit of that, I’m afraid.

    All the features are impressive.

    Thanks again.

  • Styles messed up!

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    Looks it was just reported.

  • N++ Save Personalisation / Customisation

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Jim DaileyJ

    @Owd-Larrd or Johnny B., if you prefer. :-)

    I also update the way Claudia mentions. I think it may be the only effective method.

  • Is there a quick way to paste big text to the right?

    14
    0 Votes
    14 Posts
    8k Views
    Claudia FrankC

    Hi guy038,

    beautiful. So I don’t play spider solitare anymore
    but will watch burning cake :-D

    Cheers
    Claudia

  • Can't use search/replace against a .csv to create one long string

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hi Jeff Taylor,

    using the replace dialog.
    Set Extended in Search Mode
    Find what: \r\n
    and leave Replace with empty
    press Replace All
    Done

    Cheers
    Claudia

  • Where to change this background color?

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Peter BrandP

    There are two settings being applied there
    In Preferences you can select what gets highlighted or not:

    under Editing, “Enable current line highlighting” (that controls the yellowish background) under MISC in the “Highlight Matching Tags” panel, the “Enable” checkbox (controls the purple background on the table tag)

    Change the colors in Style config, Global Styles, change background color for

    “Current line background” “Tags Match highlight”
  • File endings

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello Chris Harris,

    this shouldn’t be a problem with newest npp (version 6.8.7).

    Cheers
    Claudia

  • Why I can´t write symbol { in notepad ?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    Hi Radek,

    I assume that the curly bracket is shown when using another editor (like ms notepad), correct?
    If so, can you start notepad++ using noPlugin switch to see if a plugin causes this?
    Did you change styles and fonts?
    Can you download one of the zipped npps from here and
    retest it?

    Cheers
    Claudia

  • Need help about encoding UTF-8 without BOM

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    guy038G

    Hello lala lolo,

    BTW, this introduction sounds quite well, to my ears :-))

    Well, starting with the 6.8.1 N++ version, the UNICODE entries, of the Encoding menu, have been slightly changed !

    The Encode in / Convert to UTF-8 without BOM entry is changed into Encode in / Convert to UTF-8

    The Encode in / Convert to UTF-8 entry is changed into Encode in / Convert to UTF-8 BOM

    The Encode in / Convert to UCS-2 Big Endian entry is changed into Encode in / Convert to UCS-2 BE BOM

    The Encode in / Convert to UCS-2 Little Endian entry is changed into Encode in / Convert to UCS-2 LE BOM

    However, theirs functionalities are quite identical !

    Best Regards,

    guy038

  • Opening multiple file as a group

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Chris JohnsonC

    on the view menu there is a projects option. You can group files into projects and IIRC open all project files in one go.

    Or you can open your files and use the “save session” and then later use “load session” from the file menu

  • Powershell 2.0+ <# #> comments not supported?

    4
    0 Votes
    4 Posts
    4k Views
    dailD

    @Jksdf-Fdhgfdh Pull request has been merged, so it will be in the next release.

  • Logitech keyboard macro will not record

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Andrew LaPorteA

    Well I guess I should have done some more research. It appears the Logitech application requires admin privileges with Notepad++.

    Not sure why when this works in normal notepad but when I launch the Logitech LCore.exe with administrative privileges it works.

    If someone could tell me why Notepad++ is acting differently than notepad that would be nice. I always try to learn something new.

    Thanks,

    Andy

  • Hide "Find in Files progress..." dialog box

    2
    0 Votes
    2 Posts
    2k Views
    Cees TimmermanC

    I simply drag annoying ontop windows out of view.

  • Curser position sporadic reset

    4
    0 Votes
    4 Posts
    5k Views
    Jan OonkJ

    You can update the XML Tools Plugin to a newer version now to v2.4.8 which fixes this problem.
    Use Notepad++ > Plugins > Plugin Manager > Show Plugin Manager > Updates and choose XML Tools to be updated.

  • Printing with NpPP

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello David,

    I tried on

    windows 7 x64
    npp 6.8.7
    hp laserjet

    no problem seen.

    Cheers
    Claudia

  • Inserting a tag around selection

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hi Jean-Pierre Moularde,
    not as a native function, as far as I know.
    What could be done is writing a python script to do it
    but therefore you need to install the python plugin.
    I wrote what needs to be done here.

    So code could be a two liner like

    seltext = editor.getSelText() editor.replaceSel('<open>{0}</open>'.format(seltext))

    This would set the text <open> before and </open> after your selection.
    The {0} is where you selection will be put in.

    If anything is unclear let us know.

    Cheers
    Claudia