changing console color sublime text 3 (modifying Widget) [duplicate] - colors

This question already has an answer here:
Sublime Text 3 System Package Location?
(1 answer)
Closed 6 years ago.
Where can I find these folders on Mac (Sublime Text 3)? I succesfully found them on my PC (Sublime Text 2) and modified the theme to where now console and editor are the same background, but I cannot find the Packages\Theme - Default\Widget.sublime-settings path on my Mac. I did notice that the build window was a different color from the main editor on my PC until I updated the config's below, however on my mac and ST3 the build menu automatically is the same (console is still not though, whereas it is on the PC post-changes).
{
// "color_scheme": "Packages/Theme - Default/Widgets.stTheme",
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme"
}
Thanks for the help, FYI this is the thread I referenced: How to change the color of the console in sublime text?

In Sublime Text 3, a Widget.sublime-settings file is located in Packages/Default and Packages/Theme - Default. Install PackageResourceViewer from Package Control, then access its Open Resource function through the Command Palette to open whichever file(s) you're interested in editing. You can simply save the file(s) when you're done.

Related

Text display odd in Sublime Text

I have a display problem of Sublime Text (a source code editor).
Background:
A desktop computer running Windows 10, Sublime Text 3
Tried different versions of Sublime Text on this desktop computer, with computer restart/power-off, all show the same display problem
Another computer using the same version of Sublime Text 3, displays fine.
The display problem only exists with Sublime Text (not any other apps) in this desktop computer:
the header bar display odd texts (file names of open tabs)
when pressed keyboard shortcut Ctrl + h, it shall pop up a text Find an Replace box. (please see screenshot), in my case, there is a box popped but with no texts displayed.
The problem solved by a directly copy (whole folder) of a portable version of Sublime Text 3 from another computer (#1).
Everything seems working fine and normal (computer #2), including the setting and packages done from the computer #1.

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.

Which text editor can be able to properly display the storage files created by the CodenameOne Netbeans plugin in linux?

Which Linux text editor can be used to view the hidden files created by the CodenameOne simulator? I have tried the default Gedit and Notepadqq but the text appears gibberish while on Windows it is legible even with the default note.exe app in a human-readable way. I am running Netbeans 10 on Ubuntu 18.10.
This highly depends on the file you are editing but if you are editing the preferences file then you would break it. It's a binary file that shouldn't be edited with text editing software. Some characters that are visible on the Linux editors might be hidden on notepad. But they would still be there.

Can't change comment color in sublime text editor 3?

I have what I would consider the perfect theme colors for my Sublime Text Editor 3 application; however, the only thing that is very annoying and hard to see is the comment colors. They're the same color as the background but maybe just one shade lighter.
I've seen some other posts on here on editing theme color files within Sublime Text but for some reason it seems like the data isn't taking effect. It's like it's going off of cached data or something.
For example, I'm using the "Monokai" theme. I've edited /opt/sublime_text/Packages/Color Scheme - Default.sublime-package and searched for Monokai. I changed the hex color code under lineHighlight, and restart Sublime. Nothing changes. In fact, I've changed numerous hex color codes under that section and restarted Sublime Text and absolutely nothing has change.d
What am I doing wrong here? I'm running this on Linux Mint 17.3 Cinnamon
I was unable to change comments color by editing Monokai.tmTheme even after purging cache or sublime reinstall.
For Sublime 3.1.1 Build 3176 editing Monokai.sublime-color-scheme works.
1. Open Package Resource Viewer
2. Open Color Scheme
3. Open Monokai color scheme
4. Add you desired color in variables (pick here)
5. Change comment color
6. Enjoy your new comments color!
I've done exactly what you said, changed the value under lineHighlight in Monokai.tmTheme in Color Scheme - Default.sublime-package, restarted Sublime Text and it worked just fine. I'm running Build 3103 on Manjaro Linux.
Sublime Text stores its settings and cache ~/.config/sublime-text-3, I suggest temporarily renaming this folder, which should take you to a freshly installed state. Then make sure Sublime Text really restarts and that your color scheme changes are really in place.
I encountered the same problem. I found the following way solved my problem.
According to #Саша Черных, one can go to
tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai to create and download a customized theme. Then, in Sublime Text 3, from [References -> Browse Packages...], you can find where your Packages folder locates. Just put the downloaded file "Monokai.tmTheme" in that folder, restart app, then it's done.

Sublime Text Update 3083 Error - Error Code 32

When trying to update Sublime Text 3 to version 3083 on a Windows 10 computer I keep getting an error message at the end of the update saying
'Unable to rename C:\Program Files\Sublime Text 3 to C:\Program
Files\Sublime Text 3 (3083), error code: 32'
I looked it up on Microsoft's website and error 32 stands for 'The process cannot access the file because it is being used by another process'.
So I tried closing down all other programs and tried updating again but I still get the same problem. I have also tried running the program as an administrator but the update creates the same error message.
I only have package control installed and the Haxe plugin installed and so I can't find any other reason why it wouldn't work, although I haven't updated it before.
Can anyone offer any advice?
All the application is trying to do is copy the new files into the sublime program folder. You can do this yourself:
Close your Sublime Text program
Open a file browser C:\Users\...\AppData\Local\Sublime Text 3\Update (or wherever your update landed)
Open another C:\Program Files\Sublime Text 3 (Make a backup of this folder if you want to be cautious)
Copy everything from the update to the Program Files folder
Run Sublime Text (you should now see the update dialog)
Remove the update folder and backup if everything looks good
For me, I found that my antivirus (Malwarebytes) was causing the issue.
(I was alerted to this because I tried to update using the installer from the website and it warned me that Malwarebytes was holding on to files it needed to complete.)
I cancelled the installer, turned off Malwarebytes, and opened sublime to let it update itself normally and it worked nicely.
It seems this is common:
https://forum.sublimetext.com/t/build-3143-flagged-as-virus/31272?u=spenceryue
I can't believe chrome.exe (Google Chrome) was using the folder where Sublime Text was installed. Removing that lock with unlocker fixed the update error.
It's not like I have ANY plugin or open tab related to sublime text on chrome.
I really recommend unlocker though, saves you more than one time.
I was troubled by this problem for some days on Windows 10, and resolved it at last.
Navicate to sublime text path, like 'C:/program files/sublime text/'
find 'update_installer.exe' and 'sublime_text.exe'
Open the file's properties - compatibility - Run as administrator...(Something like that, maybe the spelling is wrong)
Select OK, and rerun sublime text.
In my case, the reason was a package (the Powershell Editor Services package), which establishes a handle to C:\Program Files\Sublime Text 3. Those processes continued to run even after cleanly quitting Sublime Text. Killing them and removing the package that spawned them allowed Sublime Text to install its update.
I found this by using Process Explorer (procexp). Here's how:
In procexp, run "Find Handle or DLL" (ctrl+F). Type "sublime" in the search field. When I did this, I saw "C:\Program Files\Sublime Text 3" appear several times in the search results.
Click on one of the results in the search window. The process that has a handle on the folder will be highlighted in procexp's main window.
Hover over the process name. You will see a Windows hint containing the command line that invoked the process. This is the command line which ran the process which had a lock on the Sublime Text 3 folder on my machine:
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "& \"C:\Users\YourUser\AppData\Roaming\Sublime Text 3\Packages\PowerShell\editorservices/Start-EditorServices.ps1\" -EditorServicesVersion \"0.7.1\" -HostName \"Sublime Text Host\" -HostProfileId \"SublimeText\" -HostVersion \"3.0.3170\" -LogLevel \"Verbose\" -LogPath \"c:\users\yourus~1\appdata\local\temp\1526304355-EditorServices.log\" -BundledModulesPath \"C:\Users\YourUser\AppData\Roaming\Sublime Text 3\Packages\PowerShell\editorservices\modules\""
The issue is documented here and has been resolved here. So, the team is being responsive. Hopefully the procedure described here will help others find and resolve similar issues, with other processes that leave unnecessary handles floating around.
In my case the reason was I had Sublime Text opened with another user in the same computer. I closed Sublime Text for each user and then the installer worked.
For me it was a plugin running in background called host plugin 3-8 and i ended it right away by clicking end process tree in task manager (Windows 7)

Resources