I have downloaded sublime text 2 and sublime text 3 but cannot find how to enable bracket highlighting - am using windows - have searched the internet but those solutions are not applicable. Please help me. Thank you.
The aptly named BracketHighlighter plugin is very good not only for highlighting but also for other bracket-related operations.
An alternative to the BracketHighlighter plugin is to make a modification to your color scheme. You could add the following code to the settings section of your color scheme file:
<key>bracketsForeground</key>
<string>#00FFFF</string>
<key>bracketsOptions</key>
<string>foreground</string>
<key>bracketContentsForeground</key>
<string>#00FFFF</string>
<key>bracketContentsOptions</key>
<string>foreground</string>
And then you would get the following result:
Obviously you could change #00FFFF to whatever color you want.
Related
What is the equivalent Atom Indent Guides like the one Bracket has showing vertical lines connecting matching beginning/opening and ending/closing brackets or keywords?
Atom supports "Indent Guides" and even names it the same, you can access the configuration by choosing Settings View: Open from the Command Palette
or by pressing Ctrl-, (Control + Comma). Scroll about two-thirds of the way down and there is a checkbox to toggle the Indent Guide on or off:
When enabled they look like this in the editor:
Also found an "improved" package in Atom if Atom's indent-guide isn't cutting it.
https://atom.io/packages/indent-guide-improved
Repo seems to be updated.
UPDATE: show indent guide option is now under Editor tab, in settings.
Screenshot:
Haha. I encountered this issue today too. If I understand your question correctly, you want to know how to enable this feature?
Go to preferences/settings and then scroll down and check 'show indent guide'.
Example
Recently I installed this awesome HTML plugin, which matches closing tags, and it works really well. I was just wondering if it's possible to change highlighting color (I'm using Solarized colorscheme). Here's screenshot of how it looks now:
I think it's possible to change the color in solarized.vim file, but there's a lot of highlighting options. I would like to set it to some other color, that's more pleasant for the eye, as tags are barely seen because of low contrast.
The MatchTag plugin is using the related MatchParen highlight group (:help hl-MatchParen). You can relink that to any other group in your ~/.vimrc, for example:
:hi link MatchParen IncSearch
or define your own highlight attributes. Put the command after any :colorscheme command, though.
I am trying to create a plugin for SublimeText that will check a file path and highlights it in the editor if it is invalid. While I think I have the correct way of checking if the filepath exists or not, I have no idea how to go about setting a scope(or other text highlight ie, turn it red) for that region. for example
* file *
./././thisisaninvalidfilepath
* rest_of_file *
Cheers in advance,
Chris
You have to call view.add_region. See the method documentation here: https://www.sublimetext.com/docs/3/api_reference.html#sublime.View
The bad part is that you can't use any color, just pre-defined scopes. The plugin mentioned above, ColorHighlighter, works by duplicating your current scheme and adding the needed colors (corresponding to the hexadecimal strings) into a "fake" scheme, then loading this fake scheme.
This is a basic flaw in Sublime's API, IMO.
In Sublime text 2 when I make an error like forget a ; or add an extra closing or opening tag there is no highlighting that tells me that I have made a mistake. Only after running the code will I know that a mistake was made. Is this normal for Sublime Text 2 or is it just me? If this is normal, is there any extension to fix this?
I use SublimeLinter which highlights potential errors in a number of languages when you save a file.
use one of this http://scottksmith.com/blog/2014/09/29/3-essential-sublime-text-plugins-for-node-and-javascript-developers/
I prefer jshint, hope to help!
How to use hotkey in notepad++ webedit plugin?
what are the keyboard shortcuts to press to insert html tags??
Install the "webedit" plugin. Which will allow you to add custom shortcuts.
(Plugins > plugin manager).
After the program restarts, go to plugins > webedit > edit config. And either change an existing one or add a new one, (example &A= | ). You can remove the shortcut icons if they annoy you.
Then you go to, settings, shortcut mapper. Right now, ctl+enter is set to word completion I believe. Change that to something else (on main menu). Then go to the plugin commands tab and find your command and set it to ctl+enter. Then restart, and it should work.
http://www.graphicdesignforum.com/forum/showthread.php?t=52719
All keyboard shortcuts can be assigned/modified using the standard Shortcut Mapper. For more information see the WebEdit.txt help file.
That's what it says in the plugin description, at least.
Setting>Keyboard Shorcut>Plugins commands
then go to
- WebEdit - A
- WebEdit - Div Class
- WebEdit [...]
and select shortcut
I see that someone sort of answered it but I have a few things to add.
When you install WebEdit, go to the config as stated.
Go down to the [Tags] section.
Underneath all the comments, add the shortcut you want.
Here is the syntax:
<Tag>=<Replacement>
For tag, put what you want to replace. For example 'h1' (dont use the carrots).
put the = sign.
Then for replacement, put what you want "h1" to be replaced with.
Here is an example of my h1 hotkey:
h1=<h1>|</h1>
What the pipe character does is tell npp where to put your cursor after the replacement.
So this is how you use it now:
type h1, then press 'Alt+Enter'(by default, you can change this too), then BAM, your 'h1' will be replaced with:
<h1></h1> and your cursor will be sitting between the tags.
You could also do h1=<h1>|\n</h1> which would print the same thing but with a line break.
You can do some pretty awesome stuff with it. Saved me SO much time once I got used to it. I never type without it anymore lol.
Here is what my personal setup looks like under the [Tags] section (and I commented everything below starting with the m=module because it was messing with my 'p' tag and I didn't care anyways.
begin=<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n\n|</body>\n</html>
h1=<h1>|</h1>
h2=<h2>|</h2>
h3=<h3>|</h3>
h4=<h4>|</h4>
h5=<h5>|</h5>
h6=<h6>|</h6>
html=<html>\n|\n</html>
script=<script type="text/javascript">\n\t\n</script>
link=<link rel="stylesheet" type="text/css" href="|">
a=
div=<div>
divclass=<div class="|">
divid=<div id="|">
divend=</div>
p=<p>|</p>
ul=<ul>\n\t|\n</ul>
li=<li>|</li>
header=<header>\n\t|\n</header>
nav=<nav>\n\t|\n</nav>
section=<section>\n\t|\n</section>
article=<article>\n\t|\n</article>
aside=<aside>\n\t|\n</aside>
footer=<footer>\n\t|\n</footer>
Remember one thing; after you edit the WebEdit, you have to restart NPP before the new tag will work.
I know this is a bit old, but you can use the Emmet plugin to speedup your HTML and CSS typing. you can customize your snippets to make any text.
It cames whith dozens of snippets already, you just have to type it and then hit Ctrl+Alt+Enter.
You can find the file to edit in this path:
C:\Program Files (x86)\Notepad++\plugins\EmmetNPP\emmet\snippets.json
It's easy to spot what you have to do.
On the plug-ins menu you will find all options that this plugin offers.
Experiment it like typing html:5 and then hit Ctrl+Alt+Enter.
Or even this ul>li*4>a[href=page.php?id=$]{page $}.
You will be amezed.
Check this online documentation for keyboard & mouse shortcuts