• CSS - Enter Colon After Autocomplete

    3
    0 Votes
    3 Posts
    3k Views
    Bruce NicollB

    Absolutely perfect, cheers mate.

  • Displaying space caracters

    5
    0 Votes
    5 Posts
    8k Views
    AdrianHHHA

    For actually displaying the space characters see menu => View => Show symbol => Show white space and tab.

  • Won't display special characters in cmd.

    4
    1 Votes
    4 Posts
    4k Views
    Aleksander ZmorzyńskiA

    Yeah, thats what friends told me “just avoid them” :)

    anyway, thanks for input :)

  • Syntax Highlight CDATA Content in XML Files

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    3 Posts
    2k Views
    Claudia FrankC

    Hi Ernie,

    newest version 6.8.7 solves this issue.

    Cheers
    Claudia

  • Is there any way to jump to/open a file from the result of Find in Files?

    3
    0 Votes
    3 Posts
    2k Views
    ToshikazuT

    Oh no, that’s so easy. Thank you very much!

  • Capitalisation

    3
    0 Votes
    3 Posts
    3k Views
    Tony PittT

    Aaargh! I thought I was there, but I’m not :-(

    The issue now is that it always replaces the next character with a uppercase version of the one that was next when the macro was recorded, whereas I want it replaced by the current next character … However, I’ve now discovered the Edit>Convert Case to->UPPERCASE which does do what I want. I wonder why the TextFX plugin doesn’t. Ah well, at least I can start my conversions …

    T

  • help with notepad++

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hi,

    how do you do this exactly?
    If I create, let’s say c:\my.html file with content

    <html> my message to display </html>

    and open firefox, add file://c:\my.html I do see the message.

    Cheers
    Claudia

  • Fetching and writing source code from and to DB records

    3
    0 Votes
    3 Posts
    3k Views
    Claudia FrankC

    @Michael-Gollnick

    2nd try - both example scripts

    I have some questions concerning a special plugin.
    Maybe someone else has already developed a plugin similar to my project.

    My source code is stored within a DB and NOT in a simple file. I want to read and
    write source code directly from to the DB.

    DB-querying is not a problem.

    But, how to insert query results into the editor (e.g. from the clipboard).
    Where to find an … how to get started.

    Has anyone got an idea.

    Thanks a lot, beginner.

    Hello Michael-Gollnick,

    well I don’t have a specialized plugin for this but maybe
    you can use the python script plugin to achieve this.
    Which database do you use?
    If it is SQLite than it is easy because it is already
    part of python 2.7, if it isn’t than maybe someone
    has already written a py module to access it.

    So two scripts like the followings could maybe solve your problem

    [code]
    import sqlite3

    conn = sqlite3.connect(r’D:\my_database.sqlite’)
    c = conn.cursor()
    c.execute(‘SELECT Code_ID, Code FROM Code’)
    records = c.fetchall()
    dict_record = dict(records)
    msg = “”
    for record in records:
    id, code = record
    msg += “{0} {1}\n”.format(id, code)

    console.write(’ Codes \n’ + msg)

    id = notepad.prompt(“Select the ID from the console output window”, ‘SELECT Code_ID, Code FROM Code’, ‘nothing chosen’)

    if id != ‘nothing chosen’:
    notepad.new(id)
    editor.addText(dict_record[int(id)])

    c.close()
    [/code]

    and second script to save the changes

    [code]
    import sqlite3, os

    conn = sqlite3.connect(r’D:\my_database.sqlite’)
    c = conn.cursor()
    c.execute(r’UPDATE Code SET Code = ? WHERE Code_ID = ? ',(editor.getText(),os.path.basename(notepad.getCurrentFilename())))
    if c.rowcount > 0:
    conn.commit()
    os.remove(notepad.getCurrentFilename())
    console.write(“CODE UPDATED”)
    else:
    console.writeError(“UPDATE failed”)
    c.close()
    [/code]

    For easy access you can assign icons (16x16 bmp) to the scripts and add it to the notepad toolbar.

    Cheers
    Claudia

  • Extended Search mode in Find dialog

    3
    0 Votes
    3 Posts
    19k Views
    Jonathan WeersJ

    For whatever reason, it seems to have left the ? menu. F1 brings up About.

    file:///C:/Program%20Files%20%28x86%29/Notepad++/user.manual/documentation/notepad-user-manual/searching/normal-search.html

    (in browser) is an example of where I could find it before updating recently (mine was around v6.3.x at the time), using Windows 7. I can still find it there and you may have it available as well. In case you don’t, here’s the list:

    \\ - Backslash character; \t – TAB character; \r – CR character; \n – LF character; \0 – NULL character; \x## - Hexadecimal value (between 00 and FF); \u#### - Extended hexadecimal value (between 0000 and FFFF, meant for Unicode characters); \d### - Decimal value (between 000 and 255); \o### - Octal value (between 000 and 377); \b######## - Binary value (between 00000000 and 11111111).

    However, I have a problem with searching things like “w\0o\0r\0d”. It seems to combine the characters in a weird way, and I’m not sure why. Same happens with \x00 instead of \0. \x00o might find \x00n instead, or \0\0. I don’t know if I’m doing something weird, but it seems like this should work fine.

  • Install Plugins without administrator privileges. GPUP.exe

    Locked
    3
    1 Votes
    3 Posts
    35k Views
    AdcubumITA

    Hi Dail

    Thank you for sharing your solution with me :)
    I’ll try it out and post my results here

  • Weird folder behavior

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    Here is a possibly similar thread. Perhaps your line endings are not consistent?

    https://notepad-plus-plus.org/community/topic/10723/udl-code-fold-get-incrementally-out-of-alignment/2

  • Running Notepad++ from read-only media?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Console behavior with process error message.

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    eui.exe is probably writing the errors on STDERR (standard error). If so, then one of these should work for you:

    cd "$(CURRENT_DIRECTORY)" c:\euphoria\BIN\eui.exe 2>&1 "$(FILE_NAME)"

    or

    cd "$(CURRENT_DIRECTORY)" del _temp_eui_err_out >nul c:\euphoria\BIN\eui.exe "$(FILE_NAME)" 2>_temp_eui_err_out if exist _temp_eui_err_out type _temp_eui_err_out
  • Is is possible to grab opened tab from a installation on an old PC?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    AdcubumITA

    Hi Chris

    Usually you can just copy the files in the appdata folder to the new machine.

    Path: C:\Users\%username%\AppData\Roaming\Notepad++ <-- in here are the backup files which store the session / opened tabs.

    I would copy the whole folder and replace the folder on the new machine, as far as I know this should work if the installed version of n++ is the same.
    I don’t know if this is possible if you have installed a newer version on the new pc.

    Regards,
    Daniel

    If this copy process screws anything up in n++, just delete the whole appdata folder and restart n++. it creates a new folder and u are back in business again.

  • 1 Votes
    2 Posts
    3k Views
    CyBrianC

    @WelshGuitarDude

    I found an additional Javascript listing under Settings | Styles Configurator …

    I don’t know if the following is the appropriate fix - if anyone knows, please comment, but
    I did the following and it’s working for me:

    In C:\Users<current user>\AppData\Roaming\Notepad++ I made backup copies of langs.xml and stylers.xml In both I commented out the blocks for javascript.js and left the ones for javascript in tact
  • Suppress from an html tag to an end of html tag

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Sébastien BernardS

    @Sébastien-Bernard
    Sorry but I dont need it anymore, I found an other way to clean the text.

  • need some help with find and replace

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Clearinghouse ForsaleC

    thank you

  • 0 Votes
    2 Posts
    2k Views
    sanastasiouS

    Some buffer explodes obviously… Habe observed similar sporadically reproducable behavior myself…

    I’d suggest to open up a bug issue and post a link to the file.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues

  • run macro headlessly on specified file

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello Cybersquir,

    Why don’t you simply use the Find in Files dialog, with a suitable regular expression ? Of course, all your concerned files should be located in a same directory !

    IMPORTANT : As you intend to change many files, simultaneously, may I suggest you to do a copy of this directory, as a backup, first ?

    Now, open the Find in Files dialog ( CTRL + SHIFT + F )

    Choose the absolute path of the folder, containing all your files

    Possibly, filter with one or several specific extension(s)

    Set the Regular expression search mode

    Check/uncheck the other options, as needed

    Then, for instance :

    To remove the first 5 lines of every file, of this folder, use :

    SEARCH \A(?:.*\R){5}

    REPLACE Nothing

    To change some consecutive tabulation characters with a comma, use :

    SEARCH \t+

    REPLACE ,

    And so on…

    Best Regards,

    guy038