Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • Robk BlueR

      HTML and CSS language color coding in the same document

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      5
      0 Votes
      5 Posts
      149 Views
      rdipardoR
      This issue is one of the most consistently duplicated on the forum, for example: “Highlight HTML and CSS” “CSS comments should be in GREEN” “css formatting not working on embed style sheet…” etc. @peterjones’s initial reply is the correct one. You can also refer to this more detailed explanation regarding the current limitations of Lexilla. For now, a relatively simple way to edit HTML documents with embedded style and script highlighting is to use the tree-sitter plugin. Note that only “light” style themes are currently supported, and you will have to manually download and extract the configuration files to get it working. [image: 1779564282293-npptreesitter-v110.png]
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      95
      5 Votes
      95 Posts
      11k Views
      guy038G
      Hello, @coises and All, How are you, @coises ? Pretty good, I guess ! I just uploaded a new version of the ICU.txt file which simply corrects a few typos. https://drive.google.com/file/d/1_TwEV1oorsoWUUjL97BmptcR4fpNQ98_/view?usp=sharing First, regarding the bug I mentioned in my two previous posts, I also detect it with native N++ and, for example, the Find Results panel : Open the Find dialog Do any kind of search Click on the Find All in Current Document button => A Search results panel opens and displays all the occurrences of the searched string Now : (1) First, click once, anywhere on the blue Search results title (2) Then, moving your mouse horizontally up to the cross, at the far right, try to close the panel => Nothing happens ! (3) Just, move down the mouse within the Search results panel then re-click on the cross => This time, the Search results panel should close, as expected. Re-open the Search results panel, using the F7 key Repeat the actions, 1, 2 and 3 to trigger again that bug. Sometimes, some tries are necessary to get into the problem ! Remark : If, you accidentally double click on the Search results title bar, this panel will become a floating window. To restore its initial postion, simply double-click again on the Search results title bar Note that, in the end, this bug does not really matter because I mapped the Ctrl + Shift + N shorctut to the Search... option of your plugin. So, hitting this shortcut twice does close the plugin, anyway ! I thought of an enhancement of your Search++ plugin : Let’s suppose that I want to mark all lines which satisfy the regex below, against the latest change.log file ( release 8.9.6 ). So : We open or select the change.log file / tab We open the Mark dialog ( Ctrl + M ) We check the Bookmark line, Purge for each search and Wrap around options, ONLY MARK (?i-s)(?:\G|Q).*?T We select the Regular expression mode Finally, we click on the Mark All button Two lines only are bookmarked : the very first one and the point #8 of v8.9.4. However, the total number of occurrences is 8 Notepad++ v8.9.6 vulnerability fix, regression fixes & bug-fixes: 8. Fix quote escaping causing incorrect JSON syntax highlighting (Lexilla update related). As you can see : For the first line, as we are at the very begining of file, the \G alternative finds two occurrences For the second line, the Q alternative finds the first occurrence and the \G alternative finds the five remaining occurrences So, I was wondering if you could alternate the colors, between the present mark color and an other one, in order to easily distinguish these occurrences ? Now, near the end of your initial Search++ post, you said : I plan to add a Save function that will let you save searches you might want to use again. Of course, once it is possible to save, it has to be possible to delete and rename and edit and organize… I haven’t designed a user interface for any of that yet. I do support this future enhancement ! Best Regards, guy038