Changing Sublime Text 3 Console Color - colors

Where can I locate Packages\Theme - Default\Widget.sublime-settings in ST3 on mac? This question is not a duplicate, please read it carefully before you relegate it to the trash. I am well aware of how to access the packages folder. In ST2 if you were to modify the second line to be the same as your current editor theme, the console would match. I cannot find the Widgets.stTheme file on mac.
{
// "color_scheme": "Packages/Theme - Default/Widgets.stTheme",
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme"
}

I am not sure I understand your question (you spend more energy defending than explaining) but if I guess right on what you are asking then try installing the very handy Package Resource Viewer package and I think it will unlock the puzzle for you.

Related

How to configure "Hover Image Preview" package of sublime text 3

I just Installed this package https://packagecontrol.io/packages/Hover%20Image%20Preview with package control in sublime text 3
now I want to configure it as said in the link, can anyone tell from where I can configure the width and height???
this package do not show up in Preferences>Package Setting
THANKS...
I've been there, it took me a while until I fully realized how Sublime settings work and being changed.
A general suggestion that might help with this issue (and many other you might encounter while working with Sublime):
Read this page carefully, esp. SETTINGS FILES section, pay special attention to the hierarchy of the prefs files.
For me it was a true revelation that set thing straight for good.
Hope it helps you too

Create a theme for a custom file type - Sublime

I wonder if someone could tell me, or link me to a place where someone can tell me (video, previous topic etc).
My question is how I create a simple theme that I can use in sublime. But the file type is not any famous one. I want to create a theme for a file type called .mcfunction - Currently, it runs plain text. So how do I do so that for example, numbers get green or some words highlight etc, I assume that is the easiest way.
Thanks in advance!
Personally, I develop data packs in .mcfunction and I use an intern package, just install Atom and install an mcfunction package

Installing mathjax breaks terminal prompt (and sublime text)

Recently, I installed the arch community package "mathjax" to be able to render some mathematical formulas in a jupyter notebook.
It works for the notebooks, but after the installation, other things are broken, like the rendering of
special symbols in Terminator and Sublime Text 3.
Here is the symbol in question, displayed in Sublime and in the actual prompt in Terminator:
http://imgur.com/a/lYBk1
My question is, how can I keep mathjax from changing these things.
How can this even happen? I thought the package is just relevant to
in-browser Latex rendering.
Ok, so a really bad solution to this is to move the mathjax folder in /usr/share/fonts to a new location and link to this location in the /usr/share/mathjax folder, overwriting the previous link named "fonts".
This fixes the issues with special symbols in Terminator and Sublime.
At least for Jupyter Notebooks, this does not seem to be breaking the rendering of formulas.
This is just a temporary solution, so I hope someone can find a better one.

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.

How can I use a right to left language in "Sublime Text" editor

I want to use some strings which are in my language (Persian) in "Sublime Text", but the editor does not show them correctly, for example:
it should be:
<title>عنوان صفحه</title>
but this is how sublime is showing it:
The encoding is set to utf-8.
What should I do to fix it?
There is This Plugin But It Does Not Work Properly
https://packagecontrol.io/packages/Bidirectional%20text%20support
added by barlop
Important Note- As comments indicate, this plugin doesn't really work. People have issues copy/pasting from sublime into notepad. It's OK for viewing but that's not much of an answer.
Note, sublime with this plugin might show leters in the correct order but copy/paste in notepad and it might not so try copy/pasting in notepad first before typing a whole load in there. Also this plugin might not move the cursor in a right to left fashion. (i.e. type a letter the cursor when typing in a right to left language should move to the left)
To install,
i've tested this on ST3 portable.
if you go to the tools menu you see there's no bidirectional option
Then if you go here
https://packagecontrol.io/packages/Bidirectional%20text%20support
see it mentions
their github page here
https://github.com/praveenvijayan/Sublime-Text-2-BIDI
Click on Clone/Download then download zip
extract it and Copy the folder to the packages folder.. i.e. open sublime, do preferences..browse packages , and it gives a folder like C:\Users\harvey\Downloads\ST3\Data\Packages Paste the folder there. (maybe it's better to put it in the user subdirectory, I don't know).
Then go to the tools menu and you see bidirectional options like bidirectional text that weren't there before
And while you're at it you may want to install "package control" if it's not already installed. Go to tools..command palette.. type 'package' see if package control appears. Or go to preferences, see if there is package control listed. If not then you don't have 'package control' installed. You can install package control by going to https://packagecontrol.io/ and click install and it gives you some python code in 2 tabs, one for ST2, one for ST3, and you can paste it into your console(view..console). But it's not strictly necessary you can install the bidirectional package without doing that.
The RTL-Mirror plugin for sublime 3 will show you the correct text by hitting Ctrl+F1 on Windows and OSX and Shift+F1 on Linux. it's not the perefect solution but it helps.
For the last few years my workflow has to been use VS Code as an IDE, for coding, and Sublime Text 3 (sorry, 4) for editing plain text because of its startup speed and because VS Code would be overkill.
However, since it's pretty clear by this point that the ST devs don't intend to implement RTL support, and because I would rather not have to install a third text editor just to deal with RTL text (which there are very few of anyway), there were only two convenient options left for me to open up RTL files on Windows.
Use Windows 10's Notepad (yes, really)
This is the superior solution since the new Notepad works well, starts up faster than Sublime, and not only renders RTL text but renders it quite well. The only downside is the lack of a dark mode.
Use VS Code (or whatever your preferred IDE is)
Both free IDEs like VS Code and paid ones like PHPStorm and IntelliJ seem to support RTL out of the box, but pretty much the only good reason to do this is if you absolutely need dark mode or are not on Windows - otherwise all of them up start up far slower than Sublime, and in the case of VS Code, render RTL text worse than Notepad does (I can't speak for JetStorm IDEs on that front).
Who knows, if I find a better alternative text editor that I can move my custom theme over to I may eventually move away from Sublime completely to another editor, but until then, sticking to two editors.

Resources