Sublime Text 3 no longer holds SCSS syntax highlighting - sublimetext3

My SCSS files keep defaulting to an unfamiliar syntax highlighting for Sublime Text (build 3103). The SCSS package was working up until now.
Recently, Sublime Text displayed a message about one of my packages updating & how my display preferences would be corrupted until I reset Sublime. My sidebar looked weird, so I reset it. This fixed the sidebar, but every time I open an SCSS file its highlighting is wrong.
Things I've tried, in various combinations...
Remove the SCSS package
Quit Sublime Text completely
Delete the Packages/User/SCSS.sublime-settings file
Delete the Cache/SCSS/ directory
Reinstall the SCSS package
Set the syntax automatically with View > Syntax > Open all with current extension as... > SCSS
Set the syntax manually with Sublime Text > Preferences > Settings – More > Syntax Specific – User
How my SCSS.sublime-settings file appears...
/// SCSS.sublime-settings
{
"extensions":
[
"scss"
]
}
EDIT
"... unfamiliar syntax highlighting..."
It is still recognized as an SCSS file (as stated in the bottom right of the editor window). But the highlighting is unfamiliar, as it does not match the highlighting style I have seen for any syntax.
More details...
No color schemes or themes were changed, I quadruple-checked in the settings
How it happened
I was working with SCSS
The update to build 3103 occurred
I reset Sublime Text
The highlighting broke for SCSS (all of the other syntax highlights seem fine)
The closest thing I have found to an answer (which is also what style-nes referenced) is that the 3103 build added a new syntax definition format called .sublime-syntax, which the SCSS probably doesn't account for (looks un-maintained).

Related

Theme for text files in Sublime Text 3

Since one of the last updates the theme for .txt files in my Sublime Text 3 has changed. I am currently using the Monokai Theme for Sublime and would like to have the same theme options for all file types (black background, line numbers on the left, slim right sidebar/margin). Only when opening .txt files the background switches to white and the sidebars/margins become too wide taking half of the screen space.
An example can be seen on the left side of the screenshot. on the right side my sublime settings are displayed:
I have tried changing the "Preferences" -> "Color Scheme... " to any other color scheme. The changes seem to apply to the other file types I use (.json, .csv, .py etc). Only the .txt files seem not to be affected by any scheme changes.
Changing "Preferences" -> "Theme..." doesn't change much.
Neither could I find any specific settings for .txt files in "Preferences" -> "Settings".
There are two potential sources of the problem - an overzealous plugin or a messed-up .sublime-settings file. First, look in your Packages/User directory, where Packages is the one opened when selecting Preferences → Browse Packages…:
Linux: ~/.config/sublime-text-3/Packages
OS X: ~/Library/Application Support/Sublime Text 3/Packages
Windows Regular Install: C:\Users\YourUserName\AppData\Roaming\Sublime Text 3\Packages
Windows Portable Install: InstallationFolder\Sublime Text 3\Data\Packages
In the User directory, look for files named Text.sublime-settings or Markdown*.sublime-settings, then try deleting them (or renaming them to *.bak so they won't get processed).
If that doesn't work, take the list of all installed plugins from Packages/User/Package Control.sublime-settings and put it in your user preferences in the "ignored_packages" setting. Hopefully that will solve the problem. To identify the offending plugin, start removing plugins from "ignored_packages" one at a time until the behavior comes back.

Removing annoying whitespace dots

I have some package that's adding indent guides in the form of dots for every whitespace, and I find it really annoying. How can I figure out what package is doing this, or override this thing (I have many packages in sublime text)?
It seems to happen only in my python files without text highlighting, but all files when I highlight text.
I've tried looking through all package settings within Preferences > Package Settings.

How do I remove CodeIntel in Sublime Text 3?

I'm using ST3 build 3114. How do I stop the code completion popup? I can't find SublimeCodeIntel anywhere in my Package Control to remove, I added SublimeCodeIntel to my 'ignored_packages' in settings which did nothing, and I searched my entire hard drive for CodeIntel and found nothing. Why does this keep popping up? I would actually like to just disable it for CSS files, but that doesn't work too.
The autocompletion of property names in CSS is supplied by the built in CSS package. To disable it:
Install PackageResourceViewer from Package Control, if it is not already installed.
Open the Command Palette
Type PRV: O and select PackageResourceViewer: Open Resource
Select CSS
Select css_completions.py
Delete the contents of the file
Save it
To disable other auto completion sources (like word/buffer completion) in CSS files, you can add the following to your user preferences:
"auto_complete_selector": "meta.tag - punctuation.definition.tag.begin, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc - source.css",
Note that this is the default auto_complete_selector value with - source.css added to the end of it.

Wrong default syntax highlighting in sublime text 3

I can't remember touching any related configuration, and for no reason, Sublime chooses "LaTeX Log" highlighting syntax as default for *.html files. I opened the Syntax Specific settings file and it's empty (?)
What can I do in order to get the proper highlighting for html files automatically?
Changing the syntax highlighting for any file type is easy in Sublime. Simply open a file with the extension you want to change, then click on View -> Syntax -> Open all with current extension as... and choose whichever language you wish. This will add the current extension to the "extensions" list in Packages/User/LanguageName.sublime-settings, where LanguageName is the syntax you chose, such as HTML in this case.

Error loading colour scheme in Sublime Text 3

This error appears every time I save file or open a file.
Error loading colour scheme Packages\User\MonokaiGrayDL.tmTheme: Unable to open Packages\User\MonikaiGray.tmTheme
I searched about it but those solutions are for sublime text 2...please help
Menu > Sublime Text > Preferences > Settings - User> remove the line with `"color_scheme"`.
After saving the line was regenerated for me with a reference to a theme that actually exists.
You need to put the theme file inside Packages\Color Scheme - Default.sublime-package.
Open Color Scheme - Default.sublime-package with 7 zip (archive tool-you may use your favorite tool), and drag Monokai Gray.tmTheme into it. Then go to Sublime, and click Preferences -> Color Scheme and find Monokai Gray. When you choose the color scheme, it automatically updates the setting with this:
"color_scheme": "Packages/Color Scheme - Default/MonoKai Gray.tmTheme",
Note: I am using Sublime 3. I am not able to share my screen shot due to lack of reputation.
Sometimes, a couple of opened files ignores color schemes settings modifications, I had the same bug then ran this in the ST3 console :
[ v.settings().erase("color_scheme") for views in [ w.views() for w in sublime.windows() ] for v in views ]
This python code is pretty self explanatory.
With this, no need to close/re-open incriminated files for the bugs to go away.
Source
This happened to me after installing Compare Side-By-Side. The error message specified that SBSCompareTheme.theme could not be found. I don't remember the exact sequence of events, but I remember that at some point, I uninstalled the plugin, and the error message kept appearing.
It turns out that the theme file was referenced in the Local/Session.sublime_session file (~/Application Support/Sublime Text 3/Local/Session.sublime_session under OSX).
I edited that file by hand to remove any reference to the theme file, and the problem went away!
I am using Sublime Text 3.
I remove ColorHighlighter and it works.
I had the same problem:
My issue was that some packages creates a syntax-specific *.sublime-settings file (Markdown.sublime-settings in my case).
The file is located in Library/Application Support/Sublime Text 3/Packages/User.
This happens to me every now and then when my theme in use is being updated via Package Control. Try switching to a different theme, optionally remove and re-install Monokai Gray, then switch back to it.
I was having a similar issue with certain files/syntaxes after deleting a package (MarkdownEditing).
My issue was that some packages creates a syntax-specific *.sublime-settings file (Markdown.sublime-settings in my case). The file is location in Library/Application Support/Sublime Text 3/Packages/User.
This settings-file overwrites your color-scheme settings elsewhere. Removing it solved the issue.
That's easy!
Click Preferences ->Setting-User
you'll find your "color_scheme" attribute is your error message.
change it with a exist ".tmTheme" file.
Restart Sublime.
Sublime 3 here, worked for me after a restart.
I was getting similar error for the package PlainTasks. By renaming the folder PlainTasks-master to PlainTasks and restarting Sublime resolved the issue.
Copy the source code of the .tmTheme file from Github.
Open your non-working .tmTheme file with Sublime text.
Paste contents, save and restart Sublime text.
GO to Preferences->Browse Packages->User->open HTML.sublime-settings
then remove the line with "color_scheme" and save it.
if it doesn't work, just open PHP.sublime-settings instead of HTML.sublime-settings and do the same thing.
delete the user and you can fined it in C:\Users\webduang\AppData\Roaming\Sublime Text 3\Packages
GO to Preference->package control->package control user setting and paste this code..
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"draw_minimap_border": true,
"draw_white_space": "selection",
"font_face": "Source Code Pro Medium",
"font_size": 13,
"ignored_packages":
[
"Markdown",
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 3,
"line_padding_top": 3,
"material_theme_accent_orange": true,
"overlay_scroll_bars": 3,
"theme": "Default.sublime-theme",
"trim_trailing_white_space_on_save": true,
"word_wrap": false
}

Resources