I seem to recall stumbling across an article on zsh about how it was possible to have different themes (or presumably, different theme settings, for different directories). In other words, you'd be able to do things like set the background color of the terminal to be blue for one directory, black for another, etc. I couldn't find the original article or anything matching what I had in mind.
Is this something that can be done?
I suggest using LS_COLORS, you can select highlighting, emboldening and different colours very quickly and easily.
heres a great tutorial on how to do that;
https://www.howtogeek.com/307899/how-to-change-the-colors-of-directories-and-files-in-the-ls-command/
It is also possible to edit the bash_profiles. script line;
export BASH_IT_THEME="whichever theme you have"
And insert a downloaded theme but this would be for your whole system (as far as I know)
Related
In frustration of some breakage, I've nuked my old/ancient
version of Scite, and done a fresh install of Scite.
So, on Windows, I now have 32-bit version 5.1.4.
Three issues:
#1 How/where to change the overall (not file-type specific)
background color, it defaults to WHITE. I'd like to configure it to that light-yellow-ish color. How/where to
do that. (Googling said to change it in the "SciTEGlobal.properties" file, but nothing in there resembles what I'm trying to do. !?!?)
#2: So, specific to HTML files, as I scrolled down thru a file, the background in HTML sections would have this same light-yellowish color, and the JS sections had white background, and I'd like to have something equivalent
to that. (On the defaults I see now, html sections are white, but the JS section are an off-white, but they are
so close to white, that my eye can hardly discern them, unless I tip the laptop's screen back and forth. (Yuck.)
#3: A new behavior I see now, is that there is some scheme for html, that uses different font-sizes for different contexts. While that seems like a worthwhile feature for many, I'd like to go back to what I had before...where
all lines were the same font-size. (And then, how can I specify just one single font-size, for all lines in all file-types.)
TIA...
Dave
Default background color and style can found in SciTEGlobal.properties file
# Global default styles for all languages
# Default
style.*.32=$(font.base)
# Line number
style.*.33=back:#E7E7E7,$(font.base)
To change default background color open SciTEUser.properties file and add following lines
# Global default styles for all languages
# Default
style.*.32=$(font.base),back:#101010,fore:#BBBBDD
# Line number
style.*.33=$(font.base),back:#101010
Note: Editing SciTEUser.properties file for customization is best practice. However this file is stored under %USERPROFILE% folder (in Windows) and customization limited to that machine only. If your SciTE installation is on USB stick (Portable installation) and you want to retain SciTE customization on whichever PC you plugged in then edit SciTEGlobal.properties
To do any changes specific to any language then edit <language>.properties file.
example html.properties for HTML specific customization.
I am in the process of finalizing the creation of graphics and try to automate the overlaying of two PNGs (which have the same size).
I have 2 folders with fixed directories, for example let's say "C:\Users\User\Desktop\Backrounds" and "C:\Users\User\Desktop\Overlays".
The files in "Overlays" are named as follows: "ID-RandomNumber-Backround.png". The variable "Backround" can be "Blue", "Red" or "Yellow".
The files in the "Backrounds" folder are the future backgrounds - named (you almost guessed it): "Blue.png", "Red.png" and "Yellow.png".
My goal at the moment is to write a script, which automates ALL files from the folder Overlays with the corresponding backgrounds (depending on the file name) from the folder Backrounds to provide - so the PNGs in the right order to put on top of each other. So the file "001-2812-Blue.png" should get the background named"Blue.png", the file "002-2612-Yellow.png" should get the background named "Yellow.png" and so on.
I'm using Windows 10 and have thought of a batch script that does this work via imagemagick and composite. Unfortunately, I am currently somehow completely lost, what a possible script could look like. Probably I'm just standing on the hose.
I would be infinitely grateful if you could give me a hint how a possible script could look like. Thank you!
If you have any questions or need more information, just let me know!
To make it a little bit clearer what exactly I have in mind, you can find a little graphic enclosed that shows what I have in mind - maybe it helps a little bit :)
In this screenshot of my vimrc settings, I have installed the plugin vim-airline using vundle. After going through airlines docs, I found the set of lines to customise my airline.
The problem is the ones highlighted in red. The blue highlighted one works fine but the red one does not. The left one is same as right one. I tried using different Unicode symbols but does not work. Any workaround to this situation as this is troubling my OCD :P.
Thanks in advance.
This is a well-known issue related to the font (size and family) used in your terminal.
For a better display, you have two solutions:
Do not use arrows as separators
Configure your terminal emulator to use a patched font with the right size
If you prefer the first solution, make sure you have this code in your .vimrc:
let g:airline_right_sep = ""
let g:airline_left_sep = ""
If you prefer the other solution, take a look at this: https://github.com/powerline/fonts
I have used the Hack font with size 11 for a long time and the arrows are perfectly displayed in my editor...
So, I do a M-x color-theme-select and select a theme. Then I to Options -> Save options. I restart and its still the black on white theme.
I tried - http://www.emacswiki.org/emacs/AquamacsFAQ
No use.
Tried downloading the theme (Charcoal Black) and put it in /Library/Preferences/Aquamacs\ Emacs/customize.el:
(load-theme 'charcoal-black t t)
(enable-theme 'charcoal-black)
Still not working. What to do now?
There might certainly be better ways to solve it than this, but this works for me, there's no reason why it shouldn't work for you, and it has the merit of being instantly understandable:
The function color-theme-initialize has to be run before a theme is chosen. This is done for you by color-theme-select, but you must do it manually or in an init file before specifying the theme.
It seems many themes have a choice function: e.g color-theme-charcoal-black chooses charcoal-black. This and many others are available after the color themes have been init'ed, but not before.
Thus, I have in my Preferences.el these two lines:
(color-theme-initialize)
(color-theme-charcoal-black)
Is there any way to include the color highlighting rules in the tmLanguage file itself?
For those who aren't familiar with it, Pro*C is sort of this mutant hybrid love-child of SQL and C, and both syntaxes are present in the file. However, there are a few Pro*C specific keyword which start or stop a big long block of SQL inside of one.
What I would like to do, is have the Pro*C keywords be different colors than the C/SQL keywords, and for the SQL blocks to have a different background color, so that they stand out. In none of the common themes are there appropriate scopes to use for this, not that I can tell. So I can't just call the Pro*C keywords "keyword.source.some-differently-colored language" (they should really be keyword.source.pro-c anyway) or the blocks "text.whatever.another-color" (using meta.block.pro-c right now).
It would be useful if I could just include the colors for these elements in the same plist that defines the syntax. Is this possible in Sublime? What's the correct way to do this?
As far as I understand it, you would have to modify the color scheme file to support what you want. Bundling the colors as part of the tmLanguage file doesn't make sense anyways. By doing that, you would basically be saying every user has to use your predefined colors, which I could imagine people wouldn't like. For example, let's say I have a white background, and you decide to make the text color white. It would look like there is nothing there.
I think the best route is to include sample "extension" of the color scheme file. Then allow the users to modify it themselves as they see fit. This would also let you use the standard naming conventions, so if they don't apply any new scopes, everything still looks okay. Of course, they can specify a more detailed scope in the scheme file to apply the proper text color/background.
What I think would be nice was if there was some way to simply extend a color scheme from a separate file, rather than needing to modify the original. Though that doesn't exist.