Is there a way to change the syntax color for the directory paths in the "Find results" tab in Sublime Text? - sublimetext3

So when you search for a word in the whole project inside sublime text it opens a tab with a bunch of text containing the results of the search. Having all that text in the same color is a bit confusing for me so i want to know if there is a way to change at least the syntax color for the paths to the file that containts the similarity.

Briefly, syntax highlighting in Sublime is controlled by language syntax definition files that use a
regex-based approach to assign scopes to different regions of text. Color scheme files then assign colors and font decorations (bold, italic, etc.) to the foregrounds and backgrounds of one or more scopes.
There are only a few scopes that color schemes can address in Find in Files:
the base scope text.find-in-files
entity.name.filename.find-in-files, which highlights the filename
constant.other.find-in-files, which highlights lines beginning with ERROR
constant.numeric.line-number.find-in-files, which highlights the line number of lines surrounding the result
constant.numeric.line-number.match.find-in-files, which highlights the line number containing the match
The following basic rules will give you green filenames and underlined bold yellow matching line numbers
{
"name": "Find In Files: filename",
"scope": "entity.name.filename.find-in-files",
"foreground": "#06FF05"
},
{
"name": "Find In Files: Line Number - Match",
"scope": "constant.numeric.line-number.match.find-in-files",
"foreground": "#FFFF00",
"font_style": "bold italic underline"
},
Here is what that looks like using the Neon Color Scheme*, which has a black background, other more general rules that cover the line numbers, and rules for outlining Find results in pink:
* Note: I am the color scheme's author.

Related

Sublime Text 3 Find - highlight all results, rather than white outline

Find in Sublime Text 3 highlights one of the results, and a white outline of the other results. The white outline (any color outline) is very hard to see. Is there a way/package to highlight all search results?
Don't know if there's a way to have all the matches highlighted, but you can make them a lot easier to see by changing the colour and making the box thicker.
To do this, create your own colour scheme by adding a new .sublime-color-scheme file to the correct folder. For me (on linux) the simplest way is to copy the default color scheme file at ~/.config/sublime-text-3/Packages/Color Scheme - Default/Monokai.sublime-color-scheme to ~/.config/sublime-text-3/Packages/User/my_colors.sublime-color-scheme
Then add the following lines to the 'global' section:
"highlight": "var(orange3)",
"selection_border_width": "2",
To use your new colour scheme, select Color Scheme from the Preferences menu - there should now me a new scheme available called 'my_colors'.

Entering italics in vim

How does one enter italic text in vim?
In the following screenshot from the infopage of a certain plugin
you can see the italic text under the heading Text styles.
It is not my goal to highlight comments in italics as has been asked in many other questions.
I am looking for a keymap by which I can toggle to "italic text mode" and back.
You can't "enter italics", or bold, or underlined. Neither in Vim nor in any other text editor. What you insert is plain characters which get displayed according to their context.
What you see in that screenshot is the effect of a special rule defined in the plugin that tells Vim to italicize text between underscores and "conceal" those underscores. That feature is plugin-specific and can be enabled/disabled with an option.
You can always save your text file in .md format and use markdown syntax for italics.
For example:
In terminal insert vim text_file_name.md to open new text file in vim.
Then in this text file insert some text surrounded with asterixes eg. Some text in * italics *.
It should automatically show word "italics" in italics.
Vanilla VIM doesn't support this. It's just a text editor. You would need to use a plugin like Txtfmt.

Sublime text 3 file name tab font

The file names on my system is unreadable. I have tried "tabset_control" but it didn't work. How do I change this font to something else?
Open the .sublime-theme file for the theme you're using and then do Cmd+F (or Ctrl+F on Windows) for tab_label. There will probably be multiple instances, but look for one that contains font.size within the curly braces surrounding it. Add a line within those curly braces that says "font.face": "Font Name",(where "Font Name" is the name of a different font). If that line already exists you can just change the font name and then save the file. The tab font should change as soon as you save it.

I want to openTBS for dynamic highlighting of a paragraphs and lines of a docx that I am downloading from my website

Haven't found any tips on stack or on the documentation thus far. Any tips? Please note that I'm not using a table for the hightlighting
In Ms Word, the highlighting feature can only apply a limited number of predetermined colors :
yellow, green, cyan, magenta, blue
red, darkBlue, darkCyan, darkGreen, darkMagenta
darkRed, darkYellow, darkGray, lightGray, black
none
The Highlighting is different from the Shading which can apply any background color, including theme's colors. The highlighting color is applied over the shading color if any.
Now, OpenTBS can change any of those properties (highlighting or shading) since it is preexisting in the template. That is OpenTBS cannot create highlighting or shading background, it can only change the color (or turn it to no color).
In the DOCX, the XML element for an existing highlighting is placed in head of the highlighted snippet and is like this:
<w:highlight w:val="darkRed"/>
The XML element for an existing shading is placed in head of the colored snippet and is like this:
<w:shd w:val="clear" w:color="auto" w:fill="FF6600"/>
So now, the solution for having dynamic highlighting with OpenTBS is this :
In the template, select the part of text to have the dynamic highlighting, and add any highligh to it.
Inside the text, add a TBS tag with the "att" parameter: [myblock.mycolor_name,att=w:highlight#w:val]
At the PHP side, make sure the column mycolor_name have always a value in the list of color given above. This can be assured using a ondata custom function.
For having dynamic shading, it is quite the same :
In the template, select the part of text to have the dynamic shading , and add any color on it. Use only Standard color, not Theme colors, because the XML is a bit different for Theme colors.
Inside the text, add a TBS tag with the "att" parameter: [myblock.mycolor_value,att=w:shd#w:val]
At the PHP side, make sure the column mycolor_value have always a value wich is a hexa color value (like in HTML) . This can be assured using a ondata custom function.

Background color, notepad++ for highlighting purposes

Is there a way in Notepad++ to highlight a snippet of text and change it's background color? I would like it to remain that color within the editor for highlighting purposes. I don't want the color to change the code at all.
You can get the effect you want by right-clicking on the highlighted snippet and selecting "Style token" -> "Using (n)th style".
This will also highlight any other sections of your code which are identical to the one you selected, which may or may not be what you want. However the highlighting will only remain for as long as you have that file open in notepad++. If you close it, you will lose the highlighting.
In Notepad++
First select the line/words to be highlighted
Go to 'Search' Menu
Select 'Mark All'.
There you will find 5 sub-menu as 'using [1..5]th style'.
(using 1st style : cyan colour) .
(2nd : light brown) .
(3rd : yellow) .
(4th : purple) .
(5th : green) .
However the highlighting will only remain for as long as you have that file open in notepad++. If you close it, you will lose the highlighting.
You can also define a language that set the snippet as a keyword and choose style for it.

Resources