LiClipse theme: Theme does not apply to strings - string

I use a particular color theme in the appearance preferences of LiClipse to change the appearance of the text in my editor for my PyDev projects.
I can easily change the color of any type of data that the editor interprets, except for strings. (Perhaps there's more but I have yet to discover them)
I am able in the Preference setting window to set any colors for strings, and I do see it being applied in the preview that the window shows, but when I click Apply, the strings in my code stays plain white. I've tried editing a couple of other data's color, and they all work great.
Following is two screenshots showing the settings window just before pressing "Apply", and my resulting code, in that order.
In the Preferences window, we can see in the preview that the "String" part is colored. Any color works. But then in my editor we can see that it did not apply, but all the other word object colors did.
My guess is that perhaps the strings in the PyDev editor are not interpreted as string, but instead something else.
I'm using LiClipse 4.5.2.201803171104
On Windows 7.

After a couple of trial and errors, I found out that by default, strings in the LiClipse PyDev editor are interpreted as constant.
Therefore, editing the color of constant changes the display colors of strings in the editor.

Related

How to recover color palette in Sublime Text 3

Something strange happened to me recently. I was testing the color schemes of Sublime Text 3 by selecting them from the menu Sublime Text > Preferences > Color Scheme. I did not find any that I liked more than my current one, but then I realized that the one I was using was not among the color schemes listed. Unfortunately I do not remember the name of the color scheme I was using.
By searching for popular color schemes online, I found one that is close: "Afterglow-twilight". However, the scheme I was using had much higher contrast, i.e. darker background and more vivid code highlight colors.
Is there a way in Sublime Text 3 to recover the color scheme I was using?
The color scheme that you're using is set as the color_scheme setting in your user preferences and the menu item Preferences > Color Scheme (which is under Sublime Text if you're on MacOS) allows you to more easily set that preference by showing you a list of all all most available color schemes along with letting you preview what they look like.
The short answer to your question is No, but the longer answer to your question is Yes.
The No is because unless you have your Preferences.sublime-settings file backed up somewhere (say if you use Dropbox to sync it) or under version control of some sort, then the value of the setting is gone now and the only way to get it back is to figure out what color scheme you were using so that you can reset it.
The Yes is because Sublime will only allow you to use color schemes that you have installed locally, and using the menu item outlined above allows you to pick between those you have installed (changing the setting as appropriate) but it doesn't remove any installed color schemes.
That means that unless you uninstalled a package in between when you were playing and noticed that your color scheme is no longer listed, that color scheme is still present even if the list isn't displaying it (and if you did uninstall a package, re-installing the package will bring it back). So all you need to do is figure out what it was.
There's a strikethrough in the first paragraph because Sublime hides some color schemes from you, so if you were using one of those it won't appear in the list and you need other means to find it.
The first thing to try is to add the following setting to your user settings (if it's not already there) to tell Sublime that legacy color schemes should also be listed:
"show_legacy_color_schemes": true,
Around the time the menu item for changing color schemes was added to the interface, some of the color schemes that used to ship with Sublime were relegated to Legacy status because they were wildly out of date and either not popular enough to warrant work to update them or impossible to fix without making visual changes.
Those color schemes are still present, but they're masked from the list of displayed color schemes unless you turn that setting on. So, in the case that you happened to be using one of those previously, this setting should let you find it again. Syntaxes that fall into this category will say Color Scheme - Legacy under them in the list.
If that doesn't turn up the color scheme that you were using, there is one last avenue of exploration. Sublime supports the idea of a hidden color scheme, which is generally something used by packages to give color schemes to things without more generally exposing them. Possibly there is a Theme out there for Sublime that distributes it's color schemes this way as well.
If you open the Sublime console with View > Show Console, you can enter the following lines one at a time into the input at the bottom of the window:
sublime.find_resources("*.hidden-tmTheme")
sublime.find_resources("*.hidden-color-scheme")
This will get Sublime to show you a list of all of the hidden color schemes (there are two different formats). Assuming either list is not empty, the items in the list represent hidden color schemes that the command mentioned above doesn't display.
If so, you can open your user preferences and manually set the color_scheme setting to each of the items in turn to see if one of them is the one you're looking for.

How to make the emojis display well in windows android studio code editor view?

How to use emoji in the Android source code in Android studio or IntelliJ in Windows OS? I want to use emojis in the logcat print messages by choosing emojis from the context-sensitive popup. I could not find the right plugin.
I need the plugin that is used in the picture below. But don't know how to achieve the same. When I googled I get references to emoji-compat for showing emoji in the android application's soft keyboard dialog. But I want to use emoji in the source code in the comments and logcat only.
Update: I thought it is an android studio feature. But it is available as soft touch keyboard in windows 10. "WIN + ;" is the shortcut for launching the same.
Now, my next question is how to make the emojis display colorful in windows android studio's code editor and logcat like the way it appears in the Mac.
In Mac it appears like this:
In windows it appears like this in the editor after adding the emoji:
On mac position the cursor in any text field you'd like to insert an
emoji, like posting a tweet for example.
Use the keyboard shortcut Command - Control - Space bar to access
emoji.
Double-click the emoji you'd like to use and it'll be inserted where
you left your cursor.
In your screenshots, the emojis appear to be rendered in a monochrome version in your editor. I've experienced a similar problem with the display of emojis in IntelliJ on macOS.
At first, I thought it was due to a character encoding setting. This turned out to be unrelated as my file encoding is set to UTF-8 everywhere.
After living with the problem for quite some time, the solution I've found to have emojis display right for me is to set the fallback font (for symbols not supported by the main font) to "Apple Color Emoji" for both the editor and the console.
The corresponding UI path for this setting is listed below.
Preferences > Editor > Font
When a color scheme font setting overrides the editor font, then the following paths can apply.
Preferences > Editor > Color Scheme > Color Scheme Font
Preferences > Editor > Color Scheme > Console Font
"Show only monospaced fonts" will need to be disabled temporarily to show the emoji font under "Fallback font".
Additionally, I made "Paste without Formatting" be my default paste option so that emojis can be pasted directly, without risk of being transformed into Unicode escape sequences.
The result is that emojis display as expected for me throughout the IDE, making a big difference to my coding pleasure!
The code editor now correctly handles Unicode emoji characters. On Mac OS X emoji characters are rendered as colored images. On Windows and Linux emoji are rendered as monochrome characters.
Source: https://blog.jetbrains.com/idea/2016/12/intellij-idea-2017-1-eap-is-open/

change background colour of notepad++ editor

I knew that colour can be set through
Settings->Style Configurator
but when the line that I am editing has a different font and background colour which I don't know how to set.
Also when I am selecting an block of code, I can't control the colour of the selection.
Basically I just want to set the editor to have the same color as the typical console, green on black background (which is friendly to eyes, not straining).
Is it possible to customise the color in the notepad++ editor ?
Or anyone knows of an editor that can meet this requirement ?
Thanks
For me it works fine to do the following:
Go to "Settings" Menu and choose "Style Configurator".
There you choose "Global Styles" (language list) and "Default Style" (style list) and set the colors you want.
You can also try to use the "Global override" style and check the different checkboxes.
In Notepad++ there is quick option without change color setting. In Notepad++ have many themes with different color option.
Notepad++ has many themes which you can select in a dropdown box in the Style Configurator window. Many of these themes (e.g. Bespin, Black board, Twilight) have dark background and different colors for different kinds of text for programming languages.
After Click “Save & Close” Button then Background and Font Color will change, like in the below image.
more information click here

Settings type «invisibles» and «shadow» in Sublime Text 3 .tmTheme file

I have read the documentation for the Color Schemes. I realized all settings except invisibles and shadow (+shadowWidth). I can translate from English, but I do not see anywhere where the elements, the color of which changes settings. Does anyone could show me the screenshots, where there are elements which change color? Thanks.
From the unofficial documentation on color schemes, linked to in your question, we can see that invisibles is ignored, so changing it has no effect on the appearance of any elements in ST3. The tmTheme format is borrowed from a different text editor, to make it easier to use the same color scheme in different editors. So maybe it does something in other text editors, but not in ST. EDIT: support for invisibles has been added to ST in build 3149 - https://github.com/SublimeTextIssues/Core/issues/1992.
The effect of the shadow setting can be seen below, it is the pink parts on the far sides:
It is only visible when the text in the document is wider than the window - it will appear on the left when the view can be scrolled to the left and it will appear on the right when the view can be scrolled to the right.
From my testing, including shadowWidth in the tmTheme file will cause the shadow to not appear. I have logged an issue in the unofficial documentation here, maybe someone will update it with details of how to get this working.
Note:
When making changes to atmTheme file, it is often necessary to close all open documents, and restart Sublime Text, before the change will become visible.

Apply background color to text region only

In my theme, I've set the background color for comments. But the color is applied to the entire row, rather than just the area with text. Is there a theme setting I can use to fix that?
The Sublime Text theme engine relies on the scopes defined in the language syntax.
Executing view.scope_name(view.sel()[0].begin()) in the Sublime Console when the cursor is inside the comment shows source.python string.quoted.double.block.python - and is the same when the cursor is in a whitespace section of the string and when it isn't.
This means you would need to alter the python language definition that Sublime uses to report a different scope when relevant, for example, string.quoted.double.block.whitespace.python, before you can use it in your theme.

Resources