• php(+html) highlighting issue

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    Hello jahsql, I don’t quite understand what you mean by Second one - because it can’t understand that only one branch of “if” is executed. Well, I understand what you are saying but I don’t see how a lexer should know if parts of a code get executed or not. A lexer should tokenize the code and color each token in regards to the defined rules. That the lexer gets confused by your code doesn’t surprise me as you have four open but only three closing tags. And php/html lexer has increased complexity as the lexer needs to satisfy php and html code together. Any suggestions/solutions? <div> <div> <!-- this should be highlighted --> <?php if($x==$y) { echo ‘<div id=“bug1”>’; /* bugged highlight to here */ echo ‘</div>’; else echo ‘<div id=“bug2”>’; echo ‘</div>’; } ?> </div> <!-- bugged highlight from here --> </div> Maybe I didn’t get the point but this are my two cents worth. Cheers Claudia
  • Select and run option

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Claudia FrankC
    Hello sathish-kulal, the builtin function is Run (F5) which can execute an external program together with your file provided as a parameter. See here for a more detailed description. This means you can run batch files, python script, c program and so on but you provide your complete file like cmd /k python.exe “$(FULL_CURRENT_PATH)” “$(FULL_CURRENT_PATH)” is the path of the active document. In this article it is also mentioned that there is a plugin called NppExec which has much more functionality. Maybe worth to try it as well. Cheers Claudia
  • 当我使用一个黑色背景的主题时,会出现一些困惑

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    If someone could translate this, I would appreciate it. Cheers Claudia
  • Finding number of Characters in SQL '' String

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Johan-Havenga, If there is a pattern in how they do the description, it should be possible. Can show us an example and describe how you want it to be done? Cheers Claudia
  • Potential buy of searching string like |CR|?

    8
    0 Votes
    8 Posts
    6k Views
    Harry ChenH
    Thanks so much for your detailed reply. Appreciate it. Not sure what purpose the “Match whole word only option” is designed for but it looks it might be working as designed. We just need to remember that option has to be UNCHECKED. For a light user of Notepad ++ I think that “Match whole word only option” is misleading for me. I have to cross my fingers wishing normal Notepad ++ users know the impact of that option. Frankly I am not fully understanding why the simple search feature involves so many hidden categories and criteria.
  • MediaWiki self-closing reference tags

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Claudia FrankC
    Hello Michael Horvath, I guess I understand what you mean. <ref name=“Pächt83”/> and confirmed with the 1959 discovery of … is painted in green underlined, whereas <ref name=“Pächt83”/> should be the only one and the text afterwards should be again in black, correct? Contrary to <ref name=whatever> here some text </ref> where everything should be painted in green and underlined. Afaik, having two different closing tags for one opening tag isn’t supported yet. Cheers Claudia
  • Enhance the search options

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G
    Hello Prabhu and Scott, Scott, nice work-around, indeed ! I upvoted for it. Prabhu, there is, also, an other possibility : Select the Search - Mark… menu option Type abc, in the Find what : zone Check the Bookmark line and the Purge for each search options If necessary, check the Match case and Wrap around options Select the appropriate search mode Click on the Mark All button Then, select the Search - Bookmark - Copy Bookmarked Lines menu option Open a new tab ( CTRL + N ) Finally, paste the bookmarked lines ( CTRL + V ) However, my method has a disadvantage : it does NOT copy the line numbers, of the matched lines :-(( So, finally, we’re all agree that an option to get ONLY ONE line, with the multiple matched strings highlighted, would be welcome !! Best Regards, guy038 P.S. : I’ve just thought about an other way to get the line numbers, but not the highlighting, unfortunately : Look for any occurrence of abc and send the results to the Find result pane, clicking, as usual, on the Find All in Current Document button Select all the lines found, in the Find result pane, with the mouse Copy these lines with a CTRL + C action Open a new tab ( CTRL + N ) Paste these lines with a CTRL + V action Finally, perform the S/R, below, with the Regular expression search mode checked SEARCH (?-s)(^\h*(Line \d+:).*\R)(?:^\h*\2.*\R?)+ REPLACE \1 Et voilà ! You get each line, of the list, only once :-)
  • Search after 2 character and delete alle between

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    Claudia FrankC
    oopps, I thought ( ) should remain, but if I reread it clearly states Search for 2 character and delete these two character and all between ? Cheers Claudia
  • All text are Italics, please help to change back without it?

    Locked
    17
    0 Votes
    17 Posts
    16k Views
    Claudia FrankC
    Lenor de Consuelo Moliano, nice to see that this could be solved. Cheers Claudia
  • NppFTP Upload and Download not fully working

    Locked
    4
    0 Votes
    4 Posts
    7k Views
    Claudia FrankC
    Hello Bobby, so you are using webhoster godaddy.com, ok. I don’t assume that they do such configuration without letting you know. From your provided log we see that you use ports 50210 and 50211. So that was the reason why I thought it might be a potential issue here. What fails is the retrieve command. -> RETR /httpdocs/Work/WorkFile.xml 150 Opening BINARY mode data connection. Download of /httpdocs/Work/WorkFile.xml failed If the ports aren’t the issue then it might be that access restictions on that particular file are the cause. E.g. you don’t have read rights (which doesn’t make sense from webhosters business point of view, I agree but can be wrongly configured) Or, your firewall is blocking. (deactivate for a test?) Maybe you wanna try a different ftp client like filezilla? From their website I see they offer information how to configure it. Cheers Claudia
  • find results screen floats in 6.8.8

    Locked 6.8.8 problem
    3
    0 Votes
    3 Posts
    2k Views
    Mike HillsM
    Hi Claudia Thanks for rapid resolution - it worked fine Thank you Mike
  • Plugins are not shown

    Locked
    4
    0 Votes
    4 Posts
    8k Views
    Claudia FrankC
    Hello Hussain-Haboubi, when Plugin Manager starts it must connect to a website to download the current plugins available. Are you sure that notepad++ is allowed to open a connection? Do you have any firewall configured? Is it possible to make a test haveing the firewall disabled? Cheers Claudia
  • How to disable the highlighting

    Locked take off highlighting disable help
    3
    0 Votes
    3 Posts
    21k Views
    glennfromiowaG
    @jonathan-doe To customize this, go into the Style Configurator, select the Global Styles under Language. The items shown in your screenshot should be Tags match highlight (blue ends) and Tags attribute (yellow middle).
  • Issue with Remote Desktop and Document Map

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 3 second character input lag for large files

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD
    Try turning off auto-completion. I regularly edit 100MB+ files and ran into this same problem. (Also make sure backups are turned off :) )
  • take carriage returns out

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    CMS MachinesC
    Thank you Claudia, that was all the info I needed.
  • Help for syntax highlighting

    Locked syntax highlight layout color udl
    4
    0 Votes
    4 Posts
    4k Views
    Claudia FrankC
    Hello Scott, thank you for your kind words, you are right, this script, as it is, is only useful if you have a data set similar to the one Marco has. For those who want to have a more general solution replace the format_line function with this one def format_line(l_num): txt = '' spacer = 1 for x in range(len(aLens) - 1): txt += a[x][l_num].rjust(aLens[x]+spacer) return txt + '\r\n' Cheers Claudia
  • Notepad++ on Wine, Crash on reload file dialog.

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    pnedevP
    Hi @VergilPrime, I think this is a Wine issue. I’m getting the same when I open a file in N++ and delete it from outside. Modifying the file from Linux environment leads to the issue you describe, you can try modifying the file from another program within Wine to see if this will trigger the same behavior. I personally have configured N++ to silently update changed file without asking which is a kind of work-around. BR, Pavel
  • Folder Change with Notepad++ !

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Djordje, I don’t get what has been changed. The folder on the server or on the localhost? Or was it the file? Can you give us a listing what you did? Ordering is important. Something like connect via FTP to server xyz.com open file acb.txt in npp edit file … and so on Cheers Claudia
  • Notepad++ 6.8.6 wont ask me to save, if change were made

    4
    0 Votes
    4 Posts
    3k Views
    BakasomasuB
    Thanks Claudia! I’ve found it afterwards kind regards