Syntax Themes wiki
Posted: 18 November 2008 11:27 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2008-11-18

Hi Folks,
since there wasnt any documentation within the Syntax Themes section of the wiki I created an initial rough post. See: http://wiki.macrabbit.com/index/SyntaxThemes/

It’s late, and I’m tired, so if there are any errors, ohh well.

If you’d like to make revisions, or expand the post, by all means please do so.

- DJ

Profile
 
 
Posted: 19 November 2008 06:14 AM   [ Ignore ]   [ # 1 ]
Administrator
RankRankRankRank
Total Posts:  106
Joined  2008-10-27

What the hell.. Gah, it looks like the entry I had done was previewed but not submitted. There goes all the work… I’ll try and restore it later today.

Profile
 
 
Posted: 19 November 2008 07:17 AM   [ Ignore ]   [ # 2 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-05
Jan - 19 November 2008 06:14 AM
What the hell.. Gah, it looks like the entry I had done was previewed but not submitted. There goes all the work… I’ll try and restore it later today.

Ayayaya I know how that is! Check your cache? I remember being able to restore a long, long, long post to the Apple support forums about a year ago from Safari’s cache or something, but for the life of me I can’t remember how.

 Signature 

Ruby.sugar | Rails.sugar? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar

http://elliottcable.name/contact.xhtml

Profile
 
 
Posted: 19 November 2008 08:28 AM   [ Ignore ]   [ # 3 ]
Administrator
RankRankRankRank
Total Posts:  106
Joined  2008-10-27

Brilliant, looks like I just forgot that I wrote the docs under Themes instead of SyntaxThemes. I’ve imported the documentation into the proper subject now.

Profile
 
 
Posted: 19 November 2008 08:45 AM   [ Ignore ]   [ # 4 ]
Sr. Member
RankRankRankRank
Total Posts:  205
Joined  2008-10-28

Do Themes support the opacity property? Or will there be any form of transparent background? I like having my environment a little see-through :).

 Signature 

PHP.sugar

“Quick! Get in the Tardis!”

Profile
 
 
Posted: 19 November 2008 08:50 AM   [ Ignore ]   [ # 5 ]
Administrator
RankRankRankRank
Total Posts:  106
Joined  2008-10-27

Yup, simply use the rgba() notation to get transparent backgrounds. Using CSSEdit to style the themes is currently the easiest way to go about it. I’ve updated the wiki to reflect this.

Profile
 
 
Posted: 19 November 2008 08:51 AM   [ Ignore ]   [ # 6 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-05
Derek Reynolds - 19 November 2008 08:45 AM
Do Themes support the opacity property? Or will there be any form of transparent background? I like having my environment a little see-through :).

I don’t know about entirely transparent, but I was considering another use for this. “ThemeInjection"s of a sort, by having bits that are mostly transparent but “affect” the colour under them, such as making the background of an injection just a little bit lighter than whatever the user’s theme is.

 Signature 

Ruby.sugar | Rails.sugar? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar

http://elliottcable.name/contact.xhtml

Profile
 
 
Posted: 19 November 2008 09:25 AM   [ Ignore ]   [ # 7 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-05
Jan - 19 November 2008 08:50 AM
Yup, simply use the rgba() notation to get transparent backgrounds. Using CSSEdit to style the themes is currently the easiest way to go about it. I’ve updated the wiki to reflect this.

Might be nice to have some sort of document to work on in CSSedit - perhaps a tool to create a HTML file out of a Syntax file would be nice? One that exhibits each syntax defined? Or something like that.

 Signature 

Ruby.sugar | Rails.sugar? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar

http://elliottcable.name/contact.xhtml

Profile
 
 
Posted: 19 November 2008 09:32 AM   [ Ignore ]   [ # 8 ]
Administrator
RankRankRankRank
Total Posts:  106
Joined  2008-10-27

Since syntax themes update as soon as you change them in Espresso (and when you save in CSSEdit), I don’t see a lot of use for that. Just change the syntax theme, save and see the result in Espresso itself with some sample documents open.

Profile
 
 
Posted: 19 November 2008 09:52 AM   [ Ignore ]   [ # 9 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-05
Jan - 19 November 2008 09:32 AM
Since syntax themes update as soon as you change them in Espresso (and when you save in CSSEdit), I don’t see a lot of use for that. Just change the syntax theme, save and see the result in Espresso itself with some sample documents open.

My bad, I didn’t notice that. Sounds perfect, I haven’t actually had time to play with the theme editing yet.

 Signature 

Ruby.sugar | Rails.sugar? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar

http://elliottcable.name/contact.xhtml

Profile
 
 
Posted: 19 November 2008 10:21 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  2
Joined  2008-11-18
Jan - 19 November 2008 06:14 AM
What the hell.. Gah, it looks like the entry I had done was previewed but not submitted. There goes all the work… I’ll try and restore it later today.

Holy moly! Thats much better.

Glad I could be of service :)

Profile
 
 
Posted: 24 November 2008 05:55 PM   [ Ignore ]   [ # 11 ]
Newbie
Avatar
Rank
Total Posts:  12
Joined  2008-11-24

I’m a little confused on how to add a php syntax theme. I thought it would be as simple as modifying the theme embedded in the app with ”@override-placeholders html, xml, php, sourcecode.js” but its not coloring my test.php which contains

<? $var "blah"?> 

Profile
 
 
Posted: 24 November 2008 06:05 PM   [ Ignore ]   [ # 12 ]
Sr. Member
RankRankRankRank
Total Posts:  205
Joined  2008-10-28
Vexi - 24 November 2008 05:55 PM
I’m a little confused on how to add a php syntax theme. I thought it would be as simple as modifying the theme embedded in the app with ”@override-placeholders html, xml, php, sourcecode.js” but its not coloring my test.php which contains

<? $var "blah"?> 

Post your theme code.

 Signature 

PHP.sugar

“Quick! Get in the Tardis!”

Profile
 
 
Posted: 24 November 2008 06:08 PM   [ Ignore ]   [ # 13 ]
Newbie
Avatar
Rank
Total Posts:  12
Joined  2008-11-24

the theme code is the Default.css included inside Espresso.app/Contents/SharedSupport/Themes

I’ve installed the lated PHP.sugar but i’m not positive thats what i need.

It’s still black text / white background.

Profile
 
 
Posted: 24 November 2008 06:13 PM   [ Ignore ]   [ # 14 ]
Sr. Member
RankRankRankRank
Total Posts:  205
Joined  2008-10-28
Vexi - 24 November 2008 06:08 PM

the theme code is the Default.css included inside Espresso.app/Contents/SharedSupport/Themes

I’ve installed the lated PHP.sugar but i’m not positive thats what i need.

It’s still black text / white background.

The PHP.sugar utilizes the SQL and REGEX sugars. For some reason the entire syntax definition fails for PHP if you do not have those installed as well. Check the PHP.sugar (official) thread for links to these sugars.

 Signature 

PHP.sugar

“Quick! Get in the Tardis!”

Profile
 
 
Posted: 24 November 2008 06:25 PM   [ Ignore ]   [ # 15 ]
Newbie
Avatar
Rank
Total Posts:  12
Joined  2008-11-24

Ok I finally got that working. Thanks ;) I’ll be sure to read the bold text next time!

Profile