Comments (10)
Hi, these errors exist in both light and dark?
from textmate-solarized.
- new keyword
The only selector I can find for this meta.function-call.php which will also select things like function_name() which is suppose to be grey. Hopefully there's some other way to do it.
- array constructs
Is now fixed in light and dark.
from textmate-solarized.
I just put the cursor over "new" and hit ctrl-shift-P (Mac) and it gives the selectors that match, so I used that to fill in the XML. You're right too, any issues with the non-gray colors are also in the light version too. I just remember reading that the Dark version was incomplete and it's the one I use, so that's where I put my efforts.
from textmate-solarized.
Any chance you could provide a simple Gist with some PHP which shows up the broken bits? The sample included with Solarized doesn't cover everything.
from textmate-solarized.
Pretty much everything I listed above was shown in the example file. I'd like a more thorough example too, though, honestly. I'm basically opening the screenshot (http://ethanschoonover.com/solarized/img/screen-php-dark.png) and Textmate with the sample file and noting differences, then fixing them. I have odd hobbies, it seems.
from textmate-solarized.
Do you want to pull in my upstream changes into your fork and see what it fixes, it should whittle down that list a little bit.
from textmate-solarized.
I’m talking about the Dark theme here. Keep in mind I don’t know anything about TextMate theming. I’m just working with the test file and comparing it to the canonical screenshot of Solarized. Let me add some commenting to the list that started this issue:
Double quotes— Fixed.Single quotes— Fixed.- Semicolons
These (;
) are orange in the current TextMate theme but grey in Solarized. punctuation.terminator.expression.php
needs to be updated.
- Scope resolution operator (double
semicolon)
I think fentie means the double colon used for calling static functions within classes. These are green in Solarized and orange in this theme. This one might be impossible to fix since both ::
and ->
use the same TextMate selector (keyword.operator.class.php
) but use different colours in Solarized, green and orange respectively.
— Fixed.new
keywordecho
keyword
Currently displayed in green while Solarized uses orange. This is another one for the unable to fix list. TextMate uses a single selector (support.function.construct.php
) for several specific functions (or so it seems). An example within the test case is the empty
function. This means echo
and empty()
will always use the same colour in TextMate while Solarized uses different colours.
Class method calls— Fixed.- Class names
These use a darker base colour in this theme than in Solarized. support.class.php
needs to be updated.
HTML tag names— Fixed.- Parentheses in PHP embedded in HTML
Actually parentheses are overall a little off. Solarized has red for all parentheses while this theme has some of them orange. The problem seems to be that TextMate does not have a selector for parentheses and instead uses the basic text colour value.
- For
source.php.embedded.block.html
this is set to orange, resulting in orange parentheses, and - for
source.php.embedded.line.html
this is set to a grey base, resulting in grey parentheses.
Both these selectors would need red as their default colour for parentheses to show correctly. Unless I’m missing some special TextMate setting.
— Fixed.<
and>
in HTML- HTML attributes
These use a lighter base colour in this theme than in Solarized. Should be the same colour as HTML’s <
and >
. entity.other.attribute-name.html
needs to be updated. (Or not? I’m not 100% sure.)
Array constructs— Fixed.- Commas
These suffer of the same problem as aforementioned parentheses. They don’t seem to have their own selector but just take on the base colour. This also means they will always be the same colour as parentheses.
Personally I rather see red parentheses and commas than making both of them grey, as Solarized defines them.
- Parenthesis within arrays (2nd opening parenthesis on lines 18 & 19)
Because parentheses aren’t matched by TextMate these have taken on the default colour set in meta.array.php
. If you want these to be coloured correctly the default colour for meta.array.php
needs to be updated to red.
@deplorableword: could you refer to the above emphasised “titles” when you commit patches for them? That way it’ll be easier to keep track. Let’s try to keep this list up-to-date and strike of those that have been fixed. Please let me know which ones have already been fixed so they can be struck off.
If anyone spots another problem with the PHP theme please open a separate issue. That’s the best way to keep problems organised and for deplorableword to close them when they’re solved.
from textmate-solarized.
Agreed, both quotes are fixed, as are arrays, new, and class method calls. Yes, I meant colon instead of semicolon, sorry.
I still see HTML tags as normal font weight instead of bold, but it's also possible the font I'm using doesn't have a bold, I'll have to verify that later.
from textmate-solarized.
both quotes are fixed, as are arrays, new, and class method calls.
Marked these as fixed.
I’ve also fixed some spelling faults and added a description to HTML attributes.
@fentie:
I still see HTML tags as normal font weight instead of bold, but it's also possible the font I’m using doesn’t have a bold
I had the same problem. Only after switching font did it become clear. Just redownloaded the theme to make sure and they really are bold.
from textmate-solarized.
The bold text I'm not sure if it's a TextMate or Typeface rendering issue or both.
@Zegnat Thanks for this list, very helpful. I will make single commits which fix these and name them accordingly.
from textmate-solarized.
Related Issues (20)
- Difference in colour codes from Solarized standard list HOT 2
- Markdown HOT 6
- can not be use with textmate 2 HOT 2
- TextMate 2 and base text color HOT 11
- Looking for contributors / maintainers HOT 9
- Possible wrong colors for html in Sublime text 2 HOT 3
- Background color for dark theme are significantly lighter than Solarized screenshots HOT 7
- Figure out how to skin the gutter correctly HOT 7
- CSS looks messy HOT 7
- Please fix selection color in Solarized light HOT 7
- Use variables for color definitions HOT 1
- Can’t get current line to highlight bg HOT 3
- C function names in dark theme should not be base01
- Highlight selected text colour in dark theme HOT 11
- Dimming of highlighted text when out of focus (solarized dark) HOT 1
- don't highlight word starting with `function`
- Duplicate elements
- (orignal theme compatibility patch) Do not color arithmetical operators HOT 4
- Invisible selection color in diffs
- Find All: clicking on a search result doesn't always bring it within current window. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textmate-solarized.