• multiple (highlight) languages in one file ((PHP +) HTML + CSS + JS)

    Locked
    2
    1 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Pete-Wright

    creating an UDL lexer for HTML, PHP, CSS and JavaScript is nearly impossible
    as you can’t specify when a new lexer needs to jump in.

    The lexer can be modified to support another lexer as seen
    in the code itself.

    I have no idea how complicated, in terms of lexing, css is, but in theory we could
    use python script plugin and indicators to do this.

    Cheers
    Claudia

  • Smart highlighting foreground color

    Locked
    10
    0 Votes
    10 Posts
    2k Views
    Claudia FrankC

    @dreamforceinc

    yes, but then you won’t have the rectangular anymore.
    You need to call it like SCI_INDICSETSTYLE(29, 17)
    17 = TEXTFORE
    and 29 you already know :-)

    Btw. this is the only way, I guess to use an bultin lexer and add additional syntax coloring.

    Cheers
    Claudia

  • Problem with C++

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Vitaliy DovganV
    Typing help npp_save

    in the NppExec Console says:

    COMMAND: npp_save USAGE: npp_save npp_save <file> DESCRIPTION: 1. Saves current file ("npp_save" without parameters) 2. Saves specified file if it's opened in Notepad++ (supports a partial file path/name) EXAMPLES: npp_save // saves current file npp_save $(#2) // saves 2nd file opened in Notepad++ npp_save txt // saves a first file which contains "txt" in its name SEE ALSO: npp_saveas, npp_saveall, npp_open Typing help cd

    in the NppExec Console says:

    COMMAND: cd USAGE: cd cd <relative_path> cd <absolute_path> DESCRIPTION: 1. Changes current directory ("cd" with parameters) 2. Shows current directory path ("cd" without parameters) EXAMPLES: cd // shows current directory path cd .. // go to up-directory cd \ // go to root-directory cd $(NPP_DIRECTORY) // go to notepad++'s directory cd e:\temp // change drive and directory SEE ALSO: dir Typing help npp_run

    in the NppExec Console says:

    COMMAND: npp_run USAGE: npp_run <command> npp_run <file> DESCRIPTION: 1. The same as Notepad++'s Run command - runs an external process 2. Opens specified file in its associated program (requires NppExec v0.2 RC3.1 or higher) EXAMPLES: npp_run calc.exe (*) * if you type just "calc.exe" without "npp_run", then NppExec runs "calc.exe" as a child process and waits until it returns (i.e. until you close the calc's window) npp_run "index.html" // opens "index.html" in your default web-browser npp_run "C:\Program Files\Mozilla Firefox\firefox.exe" "index.html" // in Firefox npp_run "$(FULL_CURRENT_PATH)" // opening using the associated program REMARKS: In terms of an application (a program), NPP_RUN allows to run it in its own window without waiting for its execution: npp_run application.exe npp_run application.exe <arguments> If, however, there is a need to wait until the application has been executed, while still running it in its own window, it can be achieved without NPP_RUN: cmd /c start /wait application.exe cmd /c start /wait application.exe <arguments> In this last case, NppExec waits for cmd to be executed, while cmd itself starts the application in its own separate window and waits until it has been executed. Type just help

    in the NppExec Console to see all the available environment variables and commands.

  • Problem setting annotation text

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    Grahame GrieveG

    Actually, my question was about Call Tips - and once I found out what I was supposed to asking, my own error was also obvious… sorry

  • Can not open file "$STRT_REPLACES$"

    8
    1 Votes
    8 Posts
    11k Views
    SOMEBADHATS

    TAKE OWNERSHIP AS ADMINSTRATOR AND GIVE ADMINISTRATOR FULL PERMISSIONS.
    “Can not open file “$STRT_REPLACES$”” MESSAGE WHEN TRYING TO OPEN FILE W/ NOTEPAD++ (SEE DEBUG INFO BELOW). THIS IS HOW I SOLVED IT.
    YOUR MILEAGE MAY VARY.
    I HAPPENED TO BE IN THE BUILT-IN ADMINSTRATOR ACCOUNT WHEN I GOT THE MESSAGE. FROM THE FILE’S PROPERTIES-SECURITY-ADVANCED-OWNER CHANGE OWNER TO ADMINISTRATOR. IT WOULD NOT LET ME CHANGE OWNER TO ME, THE CREATOR OF THE FILE EVEN THOUGH I HAVE ADMINISTRATIVE PRIVILEGES. YOU ALSO HAVE TO ADD ADMINISTRATOR TO PROPERTIES-SECURITY-GROUP AND GIVE ADMINISTRATOR FULL PRIVILEGES.

    WINDOWS 10 PRO 64-BIT APRIL 2018 UPDATE Version 10.0.17134.48
    Notepad++ v7.5.6 (32-bit)
    Build time : Mar 19 2018 - 00:26:59
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : ON
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : ComparePlugin.dll CustomizeToolbar.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll SessionMgr.dll SpellChecker.dll

  • The cursor became horizontal - blue

    9
    1 Votes
    9 Posts
    6k Views
    Scott SumnerS

    @УменяМодем-ОграниченныйТрафик

    I have a UTF-8…

    You really should start a new thread to ask a totally unrelated question…

  • can't find mysqli_query (

    Locked
    4
    0 Votes
    4 Posts
    933 Views
    David RossiD

    @Scott-Sumner said:

    \

    Thank you , the ( search works

  • Replace string \ ... .cue

    Locked
    3
    0 Votes
    3 Posts
    897 Views
    Vadim ZhivotovskyV

    Thanks!!! It’s working.

  • Saving Settings

    Locked
    9
    0 Votes
    9 Posts
    3k Views
    CodeSchlockerC

    Fantastic,

    Yeah, there is a bug in the 64-bit version of Notepad++ v7.5.6. I downloaded and installed v7.5.5, and it works just perfect.

    Not only that, it copied the settings from my 32-bit version.

    Thanks for all of your help, Claudia.

    Problem solved.

  • only ????? appearing when i type.

    Locked
    1
    0 Votes
    1 Posts
    440 Views
    No one has replied
  • LUA files won't save to data folder

    Locked
    2
    0 Votes
    2 Posts
    984 Views
    Claudia FrankC

    @Brent-Kulseth

    if it complains about it then there is a good chance that the user (operating system account)
    which started notepad++ has no sufficient rights to the directory you want to write to.

    In such a case there are two ways to solve it.

    start npp with an user which has more privileges (aka run as administrator) change the permissions on the folder (BUT DO THIS ONLY IF YOU KNOW WHAT YOU DO - otherwise you might corrupt your system)

    If you tell us which file should be save under which directory (full path) then we could,
    maybe, offer additional information how this may be solved.

    Cheers
    Claudia

  • Crashed Notepad ++

    Locked
    2
    0 Votes
    2 Posts
    584 Views
    Scott SumnerS

    @Anthony-Akpala

    Maybe see this.

  • Vue,js Syntax Support

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    MAPJe71M

    @kvinbabbar AFAICT is a JavaScript framework so why not use the JavaScript support of Notepad++?

  • User defined language custom comment identifier place

    Locked
    2
    0 Votes
    2 Posts
    816 Views
    Claudia FrankC

    @rkbest13

    not sure I understand correctly but, yes. (!?)

    Cheers
    Claudia

  • Problem saving a file in notepad++ when the file is already saved

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @David-Carter

    Dude, why are you doing SaveAs after you’ve given a file a name the first time? Just do Save !

  • How to run a job from Notepad++

    3
    1 Votes
    3 Posts
    4k Views
    Arthur GilmourA

    Thanks Claudia,
    I have used nppexec and the command set
    cd $(FULL_CURRENT_PATH)
    <Echidna Program Path> -o $(NAME_PART)

    Now to see how convenient to turns out to be.

    Best wishes, Arthur

  • ImportError: No module named Npp

    Locked
    5
    1 Votes
    5 Posts
    3k Views
    HealPotionH

    Thank you!

    This problem is solved.

  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • StartPage as alternative search engine

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    Quillathe QuassarQ

    OMG :D

    i used so much variant to figure out, but i didn’t figure out to put them all GATHER as replace :S
    I replaced it stand alone " $ " and (CURRENT_WORD)

    My apologie for waste your time , and BIG THX for help.

    You ROX

  • Find result window's current/active line colour

    Locked
    4
    2 Votes
    4 Posts
    1k Views
    Vitaliy DovganV

    Thank you!
    Indeed, sending SCI_SETCARETLINEVISIBLEALWAYS with wParam=TRUE to this Scintilla window makes the line background colour to remain even after losing the focus.