How to enable brackethighlighter plugin in sublime text 3? - sublimetext3

I am using sublime text 3 build 3059 , brackethighlighter plugin is installed but not working how to make it work ? i tried several solutions but no effect.
here is screenshot:

The plugin is working - you'll notice in your screenshot that the opening and closing {} brackets are bold underlined in white (the default style), and are also shown in the gutter, next to the line numbers. If you want to customize the display more, first open Preferences -> Package Settings -> Bracket Highlighter -> Bracket Settings - User. It will be blank at first. Next, open ... -> Bracket Settings - Default. Copy the entire contents of Default to User, then close Default (you can't edit it in Sublime Text 3).
Next, check out the Bracket Highlighter Sublime Text 3 docs and read all about how to customize the plugin to your heart's content. Good luck!

Related

Sublime Text: Enable search highlighting for large files

I have a file that I refer to routinely (it consists of timestamps), and I use Sublime Text to edit it. Normally, when I search for a token in Sublime (Command-F), all instances of the token are also highlighted.
However, the file recently went above 30,000 lines, and this seems to be a threshold for Sublime to automatically disable search highlighting.
Is there a way to re-enable search highlighting in Sublime?
This has been recently resolved.
Build 4114 adds the following options in the Sublime Preferences to make these kind of options configurable
find_scroll_highlights_limit
find_highlight_matches_max_size
find_regex_highlight_matches_max_size
find_in_files_max_result_size

Pipe filter is not expanding on a vanilla install of Sublime Text 3 with Emmet

Updating my Sublime Text 3, Emmet's comment filter (|c) is no longer expanding in HTML files.
Typing .div_class and hitting tab will expand to:
<div class="div_class"></div>
But typing .div_class|c and hitting tab will result in:
.div_class|<!-- -->
This has meant that I've been using VS Code for templating recently, but as VS Code doesn't have the option of full or partial word selection if the word uses underscores as separators, I'd rather stick with Sublime Text.
Pipe filters are no longer supported in new Emmet version. Instead, you should features like tag commenting in preferences. In Sublime Text, go to Preferences > Packages Settings > Emmet > Settings and set "comment": true.
Alternatively, you can enable "tag_preview" instead to display tag info when caret is inside closing tag: https://github.com/emmetio/sublime-text-plugin#tag-preview

How to remove code suggestion / help popup in sublime 3

I keep getting this annoying code help popup in sublime 3.
It seems to have only appeared recently. I'm not sure if it's part of sublime or some plugin.
Is there a way to disable this from showing?
EDIT:
Turns out this is to do with the package Naomi. Does anybody know if this is a configurable setting with this package?
you need to do following steps:
Go sublime Menu bar
select preferences
add this following code to user file and save it.
Blockquote
{
// Controls auto pairing of quotes, brackets etc
"auto_match_enabled": false,
// Enable visualization of the matching tag in HTML and XML
"match_tags": false,
}
I installed sublime, and disable completions popup by adding
"auto_complete": false
to the preferences.
You get to the preferences by: Menu Preferences -> Settings. There, you are supposed to edit the User Preferences file by adding custom prefs like the above snippet between the existing curly braces.

Change color of tab characters in Sublime Text 3 theme

I am using the Fortran text highlighting package for ST3, and I am making a theme using this fantastic homepage.
But see the image below. Where there are tab characters within the code (not indentation), those are colored in pink. How can I change that color, or remove it?
In the preferences, default file settings you get this instruction for changing the width and color of indent guides.
// Set to false to turn off the indentation guides.
// The color and width of the indent guides may be customized by editing
// the corresponding .tmTheme file, and specifying the colors "guide",
// "activeGuide" and "stackGuide"
"draw_indent_guides": true,
With some trial and error I found that the property is indeed a variable on this page and it's called Invalid. That is also the name in the .tmTheme file. But on the site there are no such characters in the sample code (that I saw) and the name isn't obviously related to the tab characters in my code.
The pink was in fact the default Invalid color on the theme editor site.
You are supposed to remove those, since they are not supposed to be there. They are referenced as Invalid token which can show signs for deprecation, unreadable code etc. It is supposed to look like:
diff = first - second
and not
diff = first - second
If you really want to overwrite that, you can edit the syntax definition file or overwrite it in your User folder.
Go to Preferences -> Browse Packages -> Fortran -> grammars
Open FortranModern.sublime-syntax or FortranFixedForm.sublime-syntax
Remove the following lines
# tabs are illegal
- match: \t
scope: invalid.illegal.tab.fortran
Done?
PS: A pull request to fix this has already been merged so next builds should be fine

White text in Sublime Text

I downloaded Sublime text from them website and my code still white, I don't know why. I unistalled and reinstalled it 3 times, tried to install themes packages etc I don't understand what is wrong.
This happens when Sublime Text doesn't know which syntax highlighting to choose. First of all Sublime Text guesses the syntax from the file extension. E.g. if you have a file named my_file_name.php Sublime Text assumes that the PHP syntax highlighting is the best.
In your picture the file name is script_connection without any file extension so Sublime Text doesn't know which syntax it is. You can select a syntax from the menu View ยป Syntax or press Strg + Shift + P and type Set Syntax. Another way is to click the syntax name (probably Plain Text) on the right bottom corner of Sublime Text and select a syntax format.
Sometimes when we insert Html and css and php codes in one file and as a default Sublime highlight the html and css codes because sublime knows just know html and css codes so we should open sublime application and select view from navigation bar and select syntax and then select php it will knows all types of tags and elements and highlight all.
Sublime => View => Syntax => PHP

Resources