Highlighting range between brackets in a .php file with html code as well
-
@guy038 - Niceee
-
Hi,
I tried both edit methods - using Notepad++ and later Sublime to edit shortcuts.xml but the changes dont seem to be in effect. There is no new entry under the Macro menu. The “Trim Trailing and save” is the only macro there.
Am i editing the correct file ? location ( C:\Program Files (x86)\Notepad++\shortcuts.xml ) ?
Also ->@scott -> the Autocomplete doesnt offer Scott Sumner’s name ?
-
Am i editing the correct file ? location ( C:\Program Files (x86)\Notepad++\shortcuts.xml ) ?
Could be the issue…that path is only good if you are running a local install. You can tell if this is the case if in your ? (menu) -> Debug Info you see:
Local Conf mode : ON
. For the other type (which I don’t run so can’t give you exact location) check somewhere in the area ofC:\Users\xxxxxx\AppData\Roaming\Notepad++\
. Or if you use the Cloud, it is even somewhere else…check Preferences then Cloud…the Autocomplete doesnt offer Scott Sumner’s name ?
Yea, too many "Scott"s…the NodeBB software seems to have a problem in this area…can’t scroll down to the one you want if the one you want isn’t already on the screen. :-(
BTW, where’s MY “Niceeee” ? :-D
-
Hey, this is a public request, let’s get some NICCEEE for Scott. :-D lol
This is mine
NNIIIICCCCEEEEEEEEEEEe
Cheers
Claudia -
@Scott-Sumner - NICEEEEEEEEEEEEEEEEEEEEEEEEEEE
MERRY CHRISTMAS AND HAPPY HOLIDAYS !!! -
@Scott-Sumner - Looks like the actual path is;
C:\Users<username>\AppData\Roaming\Notepad++
Added the below code block with Notepad++ itself
<Macro name=“Highlight Brace2Brace” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>
<Action type=“2” message=“0” wParam=“43023” lParam=“0” sParam=“” />
<Action type=“2” message=“0” wParam=“43053” lParam=“0” sParam=“” />
<Action type=“2” message=“0” wParam=“43022” lParam=“0” sParam=“” />
</Macro>ShutDown and Restarted Notepad and Macros Shows “Highlight Brace2Brace”.
The Macro works fine !
THANKS GUYS !!!
-
Oops spoke too soon …
If you run the Macro - The braces get highlighted … and … remains highlighted even when u click outside or ESC .
The highlight only disappears when u close the file.Hmmmm…
-
@Marco-Czen said:
The highlight only disappears when u close the file.
Yes, that is correct behavior.
You can turn OFF the highlight (without closing the file) by executing the command: Search (menu) -> Unmark All -> Clear 1st Style. As that has no default keycombo I strongly suggest you assign it one using Settings (menu) -> Shortcut Mapper…
I also noticed in your macro listing above that you don’t have a keycombo assigned to the macro–for turning the highlighting ON. I suggest you assign one there as well.
-
Looks like the actual path is
C:\Users\<username>\AppData\Roaming\Notepad++
Yes, that is what I meant when I said:
C:\Users\xxxxxx\AppData\Roaming\Notepad++\
but I should have been more explicit for those maybe not familiar with the way applications store stuff in...\AppData\.......
-
Never tried the plugin https://github.com/StanDog/npp-phpautocompletion on my own. Installation via PluginManager or manually, see http://docs.notepad-plus-plus.org/index.php?title=Plugin_Development#How_to_install_a_plugin. Latest release: https://github.com/StanDog/npp-phpautocompletion/raw/master/RELEASES/ccc_1.4.1.zip
-
@Scott-Sumner - Noted. Thanks. You are an asset to this community. Thanks x 1000
-
@Scott-Sumner - Noted. Thanks.