• Set default character set for opening existing files

    2
    1 Votes
    2 Posts
    12k Views
    guy038G

    Hello, @friemen-yellow,

    You, probably, have the encoding auto-detection enabled. I advice you to disable that feature ( Settings > Preferences… > MISC > Autodetect character encoding ). So, on opening a Cyrillic encoded file, N++ should use, the standard ANSI encoding…

    And, as your default character set, for NON-Unicode files, is, certainly, Windows-1251, your should see, immediately, the right Cyrillic characters, that you expect to :-))

    To verify which is your default encoding configuration, for Non-Unicode files, just open the ASCII Insertion Panel ( Edit > Character Panel ). For Windows-1251, the uppercase Cyrillic characters lay, between code values 192 and 223 and the lowercase Cyrillic characters are between code values 224 and 255.

    And if you change the default ANSI encoding for the Windows-1251 encoding ( Encoding > Character sets > Cyrillic > Windows-1251 ), the list, in the ASCII Insertion panel is updated but shoud remain unchanged !

    You may also, for quick change to the Windows-1251 encoding, use a shortcut. Choose the menu option Settings > Shortcut Mapper… > Main Menu > Windows-1251 ( Line 213 ). I, personally, chose the Crtl + Alt+ E shortcut. Unfortunately, there’s a small bug, as the shortcut description overwrites the encoding zone, on the right part of the status bar ! So, the new current encoding is, generally, impossible to distinguish :-((

    Best Regards,

    guy038

    PS :

    In addition, if you’re using the option Settings > Preferences > Backup > Remember current session for next launch, the Windows-1251 encoding of your opened Cyillic files should be preserved, from one session to the next one, as it is clearly coded in the Session.xml configuration file ( encoding=“1251” ) if, of course, you did not close these files, before closing N++

  • Converting to plain text?

    Locked
    4
    0 Votes
    4 Posts
    19k Views
    gstaviG

    When saving, save name[dot], E.g. xxx. and file will be named xxx rather than xxx.txt.

  • Fonts' lowercase higher than uppercase letters

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    johnswolterJ

    [CORRECTED LINK]…here’s the link…

  • Pasting HTML format text from clipboard

    Locked
    3
    0 Votes
    3 Posts
    8k Views
    Parpaluck209P

    word is a reference to Microsoft Word. Notepad++ is not a word processor!

    There is, however, an old HTML editor of the 1990s: Arachnophilia. I still use it, as it adds tags for me (e.g. select text, then press Ctrl+I to emphasize). I copy-and-paste from Word, for example, to Arachnophilia: the formatting is preserved. Then, when I see bold text, I simply select the text in Arachnophilia and press Ctrl+B, etc.

    Maybe Claudia can write such a useful plug-in.
    “Plug it in, plug it in!” is a popular ad for air fresheners on American TV.

    Peace be with you and this community!

  • Language File for SPICE/HSPICE

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Chuan-Lee

    do not click on the author links, instead use the language link and the xml shows up.

    Cheers
    Claudia

  • Switching from ATOM.IO Need the following

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Claudia FrankC

    @Russell-Harrower

    here
    the docu what can be done.

    Cheers
    Claudia

  • Debugging Funtion Lists

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    Robert MurrellR

    Thanks for the help. Here is a simple parser for MooTools. I’ll expand it as I become more familiar with PCRE.

    <association id= "mootools_syntax" langID="19" /> <parser displayName="MooTools" id ="mootools_syntax" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)" > <classRange mainExpr ="(^var[\t\x20]+[A-Za-z_]\w*\s*\=\s*\{|(\bvar)?[\t\x20]+[A-Za-z_]\w*\s*\=\s*new\s+[A-Za-z_]\w*\s*\(\s*\{)" openSymbole ="\{" closeSymbole="\}" > <className> <nameExpr expr="[\t\x20]+[A-Za-z_]\w*" /> <nameExpr expr="[A-Za-z_]\w*" /> </className> <function mainExpr="^[\t\x20]+\w+[\t\x20]*\:[\t\x20]*function" > <functionName> <funcNameExpr expr="[\t\x20]+\w+" /> <funcNameExpr expr="\w+" /> </functionName> </function> </classRange> <function mainExpr="((^|\s+|[;\}\.])([A-Za-z_]\w*\.)*[A-Za-z_]\w*\s*[=:]|^|[\s;\}]+)\s*function(\s+[A-Za-z_]?\w*\s*\([^\)\(]*\)|\([^\)\(]*\))[\n\s]*\{" > <functionName> <nameExpr expr="[A-Za-z_]\w*\s*[=:]|[A-Za-z_]?\w*\s*\(" /> <nameExpr expr="[A-Za-z_]?\w*" /> </functionName> <className> <nameExpr expr="([A-Za-z_]\w*\.)*[A-Za-z_]\w*\." /> <nameExpr expr="([A-Za-z_]\w*\.)*[A-Za-z_]\w*" /> </className> </function> </parser>
  • Need Help in "Define your language" section

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @Anand-Mohan

    I don’t know PL1, but if it has any type of preprocessing ability like C does, you could do something like this:

    #define procend end

    and then use “procend” in your code. This is not ideal, I admit.

    Otherwise, I think you have to define all the statement N’s you might use as the beginning of some fold (Open:) and add the corresponding number of “end” statements to end the fold (Close:). That is, you can have multiple Open:, Middle: and Close: tokens; just make sure they are in the correct order (first Close: goes with the first Open:, etc.).

  • 0 Votes
    1 Posts
    922 Views
    No one has replied
  • Font Name and Size sets to default for every new launch

    Locked
    1
    0 Votes
    1 Posts
    981 Views
    No one has replied
  • Adding commas

    Locked
    3
    0 Votes
    3 Posts
    16k Views
    Zhana RisleyZ

    You are my new ‘Rock Star!’ That worked exactly like i needed it to!!! Thanks a million!

  • remove a word in a block

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    Pouemes44P

    i think that i shall read the regex links before to try python :-)
    still thanks guy, your way to copy a block was really great for me

  • Help with strange highlight

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • The problem of adding Notepad++ to the list of default programs...

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Иван ЯщерицынИ

    (EN)
    Problem solved…
    In the settings menu added default program
    (RU)
    Проблемма решена…
    В меню настроек добавил программы по умолчанию

  • Open Files as Read Only

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How would i combine Every 3 Lines together?

    Locked
    3
    0 Votes
    3 Posts
    7k Views
    Aaron MCA

    Thank you man it worked! You came clutch for me. :)

  • Question about Macros

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    MaxsteinfeldM

    Hi Claudia,
    that works perfect !! many thx :-)
    feedback: if you make changes before running the modified macro
    npp asks if the changes should be saved.
    best regards
    Bernd

  • Combine Doc Switch and Function list

    7
    1 Votes
    7 Posts
    4k Views
    Matt HallM

    Does anyone know if something like this exists yet? Can’t Imagine I’m the only one missing this functionality!

  • How do I restore a html file?

    Locked
    1
    0 Votes
    1 Posts
    916 Views
    No one has replied
  • Delete near duplicate rows

    Locked
    1
    0 Votes
    1 Posts
    916 Views
    No one has replied