[Colorization] PHP Colors like Dreamweaver

A place for those developing Aptana plugins, scripts or extending the IDE to gather and discuss extending Studio beyond the standard features.

Moderator: Aptana Staff

[Colorization] PHP Colors like Dreamweaver

Postby Priet » Sun Jun 17, 2007 3:56 pm

I've worked with Dreamweaver for I long time and got used to the nice and bright colors it uses for the PHP syntax.

I altered the color styles in Aptana (yeah, nice new feature!) and came up with the following result.

Instructions: Copy and paste this into a new document and save it as a ".col" file. Then import this file under Settings --> Aptana --> Editors --> PHP Editor --> Colors.

Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<colorizer xmlns="http://www.aptana.com/2007/colorizer/1.0" language="text/php">
<category name="WHITESPACE" style="WHITESPACE">
<token style="WHITESPACE_DOC_COMMENT" type="DOC_COMMENT"/>
<token style="WHITESPACE_COMMENT" type="COMMENT"/>
<token style="WHITESPACE_WHITESPACE" type="WHITESPACE"/>
</category>
<style foreground="rgb(0,128,0)" id="WHITESPACE"/>
<style foreground="rgb(0,0,255)" id="WHITESPACE_DOC_COMMENT"/>
<style foreground="rgb(255,153,0)" id="WHITESPACE_COMMENT"/>
<style foreground="rgb(0,0,0)" id="WHITESPACE_WHITESPACE"/>
<category name="LITERAL" style="LITERAL"/>
<style foreground="rgb(204,0,0)" id="LITERAL"/>
<category name="KEYWORD" style="KEYWORD">
<token style="KEYWORD_PRINT" type="PRINT"/>
<token style="KEYWORD_ECHO" type="ECHO"/>
</category>
<style foreground="rgb(0,102,0)" id="KEYWORD"/>
<style foreground="rgb(0,0,255)" id="KEYWORD_PRINT"/>
<style foreground="rgb(0,0,255)" id="KEYWORD_ECHO"/>
<category name="ERROR" style="ERROR"/>
<style foreground="rgb(255,0,0)" id="ERROR"/>
<category name="IDENTIFIER" style="IDENTIFIER"/>
<style foreground="rgb(0,0,0)" id="IDENTIFIER"/>
<category name="PUNCTUATOR" style="PUNCTUATOR">
<token style="PUNCTUATOR_CURLY_CLOSE" type="CURLY_CLOSE"/>
<token style="PUNCTUATOR_OPEN_TAG" type="OPEN_TAG"/>
<token style="PUNCTUATOR_CLOSE_PAREN" type="CLOSE_PAREN"/>
<token style="PUNCTUATOR_SEMICOLON" type="SEMICOLON"/>
<token style="PUNCTUATOR_CURLY_OPEN" type="CURLY_OPEN"/>
<token style="PUNCTUATOR_CLOSE_TAG" type="CLOSE_TAG"/>
<token style="PUNCTUATOR_OPEN_PAREN" type="OPEN_PAREN"/>
</category>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR"/>
<style foreground="rgb(0,0,153)" id="PUNCTUATOR_CURLY_CLOSE"/>
<style foreground="rgb(0,0,128)" id="PUNCTUATOR_OPEN_TAG"/>
<style foreground="rgb(0,0,153)" id="PUNCTUATOR_CLOSE_PAREN"/>
<style foreground="rgb(0,0,0)" id="PUNCTUATOR_SEMICOLON"/>
<style foreground="rgb(0,0,153)" id="PUNCTUATOR_CURLY_OPEN"/>
<style foreground="rgb(0,0,128)" id="PUNCTUATOR_CLOSE_TAG"/>
<style foreground="rgb(0,0,153)" id="PUNCTUATOR_OPEN_PAREN"/>
</colorizer>


I hope someone can use this :) Please post any updates you might make to it.
User avatar
Priet
 
Posts: 84
Joined: Thu Sep 21, 2006 9:56 am
Location: The Netherlands

Do you know how to adjust the html colors to look like DW?

Postby swimtron » Mon Jun 25, 2007 8:15 pm

Thanks!

Works great for the PHP code. Do you know how to adjust HTML coloring to look like Dreamweaver as well?
swimtron
 
Posts: 1
Joined: Mon Jun 25, 2007 7:59 pm

Postby Priet » Mon Jun 25, 2007 9:08 pm

Here is what I did: just set up Dreamweaver and Aptana next to each other. In both programs open the preferences dialog and open the section for the (in this case) HTML colors. In Dreamweaver: click on the right syntax type and click the color: you'll see a color dialog opening. Click on More >> and check the RGB colors. I used this colors to change the colors for the same syntax types in Aptana.

No that difficult, just a lot of work ;)
User avatar
Priet
 
Posts: 84
Joined: Thu Sep 21, 2006 9:56 am
Location: The Netherlands

Postby chris.c » Sat Jul 07, 2007 12:41 pm

Thank you, I used to use dreamweaver also, ( Untill I got my new pc... )
And have grown fond of the syntax coloring.

So thank you for your trouble. :wink:
Image
Image
chris.c
 
Posts: 16
Joined: Fri Feb 16, 2007 9:01 pm
Location: I happen to be lost at the moment...

Postby prafuitu » Mon Jul 09, 2007 8:50 am

Here are my .col files. They are based on dreamweaver's color themes, with very small variations. Enjoy them!

HTML:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<colorizer xmlns="http://www.aptana.com/2007/colorizer/1.0" language="text/html">
<category name="WHITESPACE" style="WHITESPACE"/>
<style foreground="rgb(128,128,128)" id="WHITESPACE"/>
<category name="LITERAL" style="LITERAL">
<token style="LITERAL_TEXT" type="TEXT"/>
<token style="LITERAL_CDATA_TEXT" type="CDATA_TEXT">
<region length="LENGTH-3" name="TEXT_PART" offset="0" style="LITERAL_CDATA_TEXT_TEXT_PART"/>
<region length="3" name="START_END" offset="LENGTH-3" style="LITERAL_CDATA_TEXT_START_END"/>
</token>
<token style="LITERAL_PE_REF" type="PE_REF"/>
<token style="LITERAL_PI_TEXT" type="PI_TEXT"/>
<token style="LITERAL_ENTITY_REF" type="ENTITY_REF"/>
<token style="LITERAL_PERCENT_TEXT" type="PERCENT_TEXT"/>
<token style="LITERAL_NAME" type="NAME"/>
<token style="LITERAL_CHAR_REF" type="CHAR_REF"/>
</category>
<style foreground="rgb(0,0,255)" id="LITERAL"/>
<style foreground="rgb(0,0,0)" id="LITERAL_TEXT"/>
<style foreground="rgb(128,128,128)" id="LITERAL_CDATA_TEXT_TEXT_PART"/>
<style foreground="rgb(0,0,255)" id="LITERAL_CDATA_TEXT_START_END"/>
<style foreground="rgb(0,128,0)" id="LITERAL_CDATA_TEXT"/>
<style foreground="rgb(255,0,0)" id="LITERAL_PE_REF"/>
<style foreground="rgb(128,128,128)" id="LITERAL_PI_TEXT"/>
<style foreground="rgb(255,0,0)" id="LITERAL_ENTITY_REF"/>
<style foreground="rgb(128,128,128)" id="LITERAL_PERCENT_TEXT"/>
<style foreground="rgb(0,0,128)" id="LITERAL_NAME"/>
<style foreground="rgb(255,0,0)" id="LITERAL_CHAR_REF"/>
<category name="KEYWORD" style="KEYWORD">
<token style="KEYWORD_VERSION" type="VERSION">
<region length="7" name="VERSION_PART" offset="0" style="KEYWORD_VERSION_VERSION_PART"/>
<region length="LENGTH-10" name="VALUE_PART" offset="9" style="KEYWORD_VERSION_VALUE_PART"/>
<region length="1" name="EQUAL_PART" offset="7" style="KEYWORD_VERSION_EQUAL_PART"/>
<region length="1" name="QUOTE2_PART" offset="LENGTH-1" style="KEYWORD_VERSION_QUOTE2_PART"/>
<region length="1" name="QUOTE1_PART" offset="8" style="KEYWORD_VERSION_QUOTE1_PART"/>
</token>
<token style="KEYWORD_STANDALONE" type="STANDALONE">
<region length="LENGTH-11" name="VALUE_PART" offset="12" style="KEYWORD_STANDALONE_VALUE_PART"/>
<region length="1" name="EQUAL_PART" offset="10" style="KEYWORD_STANDALONE_EQUAL_PART"/>
<region length="1" name="QUOTE2_PART" offset="LENGTH-1" style="KEYWORD_STANDALONE_QUOTE2_PART"/>
<region length="1" name="QUOTE1_PART" offset="11" style="KEYWORD_STANDALONE_QUOTE1_PART"/>
<region length="10" name="STANDALONE_PART" offset="0" style="KEYWORD_STANDALONE_STANDALONE_PART"/>
</token>
</category>
<style foreground="rgb(0,0,128)" id="KEYWORD"/>
<style foreground="rgb(255,0,0)" id="KEYWORD_VERSION_VERSION_PART"/>
<style foreground="rgb(0,0,255)" id="KEYWORD_VERSION_VALUE_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_VERSION_EQUAL_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_VERSION_QUOTE2_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_VERSION_QUOTE1_PART"/>
<style foreground="rgb(0,0,128)" id="KEYWORD_VERSION"/>
<style foreground="rgb(0,0,255)" id="KEYWORD_STANDALONE_VALUE_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_STANDALONE_EQUAL_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_STANDALONE_QUOTE2_PART"/>
<style foreground="rgb(0,0,0)" id="KEYWORD_STANDALONE_QUOTE1_PART"/>
<style foreground="rgb(255,0,0)" id="KEYWORD_STANDALONE_STANDALONE_PART"/>
<style foreground="rgb(0,0,128)" id="KEYWORD_STANDALONE"/>
<category name="ERROR" style="ERROR"/>
<style font-style="italic" font-weight="bold" foreground="rgb(128,0,128)" id="ERROR"/>
<category name="PUNCTUATOR" style="PUNCTUATOR">
<token style="PUNCTUATOR_START_TAG" type="START_TAG"/>
<token style="PUNCTUATOR_ELEMENT_DECL" type="ELEMENT_DECL"/>
<token style="PUNCTUATOR_GREATER_THAN" type="GREATER_THAN"/>
<token style="PUNCTUATOR_ENTITY_DECL" type="ENTITY_DECL"/>
<token style="PUNCTUATOR_CDATA_START" type="CDATA_START"/>
<token style="PUNCTUATOR_ATTLIST_DECL" type="ATTLIST_DECL"/>
<token style="PUNCTUATOR_SLASH_GREATER_THAN" type="SLASH_GREATER_THAN"/>
<token style="PUNCTUATOR_PI_OPEN" type="PI_OPEN"/>
<token style="PUNCTUATOR_PERCENT_GREATER" type="PERCENT_GREATER"/>
<token style="PUNCTUATOR_DOCTYPE_DECL" type="DOCTYPE_DECL"/>
<token style="PUNCTUATOR_PERCENT_OPEN" type="PERCENT_OPEN">
<region length="LENGTH-2" name="NAME_PART" offset="2" style="PUNCTUATOR_PERCENT_OPEN_NAME_PART"/>
<region length="2" name="TAG_PART" offset="0" style="PUNCTUATOR_PERCENT_OPEN_TAG_PART"/>
</token>
<token style="PUNCTUATOR_CDATA_END" type="CDATA_END"/>
<token style="PUNCTUATOR_QUESTION_GREATER_THAN" type="QUESTION_GREATER_THAN"/>
<token style="PUNCTUATOR_XML_DECL" type="XML_DECL">
<region length="3" name="NAME_PART" offset="2" style="PUNCTUATOR_XML_DECL_NAME_PART"/>
<region length="2" name="TAG_PART" offset="0" style="PUNCTUATOR_XML_DECL_TAG_PART"/>
</token>
<token style="PUNCTUATOR_END_TAG" type="END_TAG"/>
<token style="PUNCTUATOR_NOTATION_DECL" type="NOTATION_DECL"/>
</category>
<style foreground="rgb(0,0,0)" id="PUNCTUATOR"/>
<style foreground="rgb(0,0,128)" id="PUNCTUATOR_START_TAG"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_ELEMENT_DECL"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_GREATER_THAN"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_ENTITY_DECL"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_CDATA_START"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_ATTLIST_DECL"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_SLASH_GREATER_THAN"/>
<style font-weight="bold" foreground="rgb(255,0,0)" id="PUNCTUATOR_PI_OPEN"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_PERCENT_GREATER"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_DOCTYPE_DECL"/>
<style foreground="rgb(163,21,21)" id="PUNCTUATOR_PERCENT_OPEN_NAME_PART"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_PERCENT_OPEN_TAG_PART"/>
<style foreground="rgb(0,0,0)" id="PUNCTUATOR_PERCENT_OPEN"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_CDATA_END"/>
<style font-weight="bold" foreground="rgb(255,0,0)" id="PUNCTUATOR_QUESTION_GREATER_THAN"/>
<style foreground="rgb(163,21,21)" id="PUNCTUATOR_XML_DECL_NAME_PART"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_XML_DECL_TAG_PART"/>
<style foreground="rgb(0,0,0)" id="PUNCTUATOR_XML_DECL"/>
<style foreground="rgb(0,0,128)" id="PUNCTUATOR_END_TAG"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_NOTATION_DECL"/>
</colorizer>


CSS:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<colorizer xmlns="http://www.aptana.com/2007/colorizer/1.0" language="text/css">
<category name="WHITESPACE" style="WHITESPACE"/>
<style foreground="rgb(128,128,128)" id="WHITESPACE"/>
<category name="LITERAL" style="LITERAL">
<token style="LITERAL_HASH" type="HASH"/>
<token style="LITERAL_FUNCTION" type="FUNCTION"/>
<token style="LITERAL_COLOR" type="COLOR"/>
<token style="LITERAL_CLASS" type="CLASS"/>
<token style="LITERAL_STRING" type="STRING"/>
</category>
<style foreground="rgb(0,0,255)" id="LITERAL"/>
<style foreground="rgb(255,0,255)" id="LITERAL_HASH"/>
<style font-weight="bold" foreground="rgb(0,0,0)" id="LITERAL_FUNCTION"/>
<style foreground="rgb(0,0,255)" id="LITERAL_COLOR"/>
<style foreground="rgb(255,0,255)" id="LITERAL_CLASS"/>
<style font-style="italic" foreground="rgb(0,128,0)" id="LITERAL_STRING"/>
<category name="KEYWORD" style="KEYWORD">
<token style="KEYWORD_IMPORTANT" type="IMPORTANT"/>
<token style="KEYWORD_URL" type="URL"/>
</category>
<style foreground="rgb(0,0,255)" id="KEYWORD"/>
<style font-weight="bold" foreground="rgb(255,0,0)" id="KEYWORD_IMPORTANT"/>
<style foreground="rgb(0,128,0)" id="KEYWORD_URL"/>
<category name="ERROR" style="ERROR"/>
<style foreground="rgb(222,0,0)" id="ERROR"/>
<category name="IDENTIFIER" style="IDENTIFIER"/>
<style foreground="rgb(0,0,128)" id="IDENTIFIER"/>
<category name="PUNCTUATOR" style="PUNCTUATOR">
<token style="PUNCTUATOR_STAR" type="STAR"/>
<token style="PUNCTUATOR_SEMICOLON" type="SEMICOLON"/>
<token style="PUNCTUATOR_RCURLY" type="RCURLY"/>
<token style="PUNCTUATOR_INCLUDES" type="INCLUDES"/>
<token style="PUNCTUATOR_LCURLY" type="LCURLY"/>
<token style="PUNCTUATOR_COMMA" type="COMMA"/>
<token style="PUNCTUATOR_COLON" type="COLON"/>
</category>
<style font-weight="bold" foreground="rgb(0,0,0)" id="PUNCTUATOR"/>
<style foreground="rgb(255,0,255)" id="PUNCTUATOR_STAR"/>
<style foreground="rgb(255,0,0)" id="PUNCTUATOR_SEMICOLON"/>
<style foreground="rgb(255,0,255)" id="PUNCTUATOR_RCURLY"/>
<style foreground="rgb(0,128,0)" id="PUNCTUATOR_INCLUDES"/>
<style foreground="rgb(255,0,255)" id="PUNCTUATOR_LCURLY"/>
<style foreground="rgb(255,0,255)" id="PUNCTUATOR_COMMA"/>
<style font-weight="bold" foreground="rgb(255,0,255)" id="PUNCTUATOR_COLON"/>
</colorizer>


PHP:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<colorizer xmlns="http://www.aptana.com/2007/colorizer/1.0" language="text/php">
<category name="WHITESPACE" style="WHITESPACE"/>
<style foreground="rgb(255,128,0)" id="WHITESPACE"/>
<category name="LITERAL" style="LITERAL">
<token style="LITERAL_NUMBER" type="NUMBER"/>
</category>
<style foreground="rgb(204,0,0)" id="LITERAL"/>
<style font-weight="bold" foreground="rgb(204,0,0)" id="LITERAL_NUMBER"/>
<category name="KEYWORD" style="KEYWORD">
<token style="KEYWORD_ECHO" type="ECHO"/>
<token style="KEYWORD_PRINT" type="PRINT"/>
<token style="KEYWORD_FUNCTION" type="FUNCTION"/>
<token style="KEYWORD_FALSE" type="FALSE"/>
<token style="KEYWORD_THIS" type="THIS"/>
<token style="KEYWORD_TRY" type="TRY"/>
<token style="KEYWORD_ARRAY" type="ARRAY"/>
<token style="KEYWORD_EXIT" type="EXIT"/>
<token style="KEYWORD_NEW" type="NEW"/>
<token style="KEYWORD_UNSET" type="UNSET"/>
<token style="KEYWORD_ISSET" type="ISSET"/>
<token style="KEYWORD_LOGICAL_OR" type="LOGICAL_OR"/>
<token style="KEYWORD_LOGICAL_XOR" type="LOGICAL_XOR"/>
<token style="KEYWORD_TRUE" type="TRUE"/>
<token style="KEYWORD_LOGICAL_AND" type="LOGICAL_AND"/>
<token style="KEYWORD_VAR" type="VAR"/>
<token style="KEYWORD_LIST" type="LIST"/>
<token style="KEYWORD_EVAL" type="EVAL"/>
<token style="KEYWORD_RETURN" type="RETURN"/>
</category>
<style foreground="rgb(0,128,0)" id="KEYWORD"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_ECHO"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_PRINT"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_FUNCTION"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_FALSE"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_THIS"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_TRY"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_ARRAY"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_EXIT"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_NEW"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_UNSET"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_ISSET"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_OR"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_XOR"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_TRUE"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_AND"/>
<style font-weight="bold" foreground="rgb(0,115,170)" id="KEYWORD_VAR"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LIST"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_EVAL"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_RETURN"/>
<category name="ERROR" style="ERROR"/>
<style font-style="italic" font-weight="bold" foreground="rgb(255,0,255)" id="ERROR"/>
<category name="IDENTIFIER" style="IDENTIFIER">
<token style="IDENTIFIER_IDENTIFIER" type="IDENTIFIER"/>
<token style="IDENTIFIER_VARIABLE" type="VARIABLE">
<region length="1" name="VARIABLE region" offset="0" style="IDENTIFIER_VARIABLE_VARIABLE region"/>
</token>
</category>
<style foreground="rgb(0,0,0)" id="IDENTIFIER"/>
<style foreground="rgb(0,115,170)" id="IDENTIFIER_IDENTIFIER"/>
<style font-weight="bold" foreground="rgb(0,0,0)" id="IDENTIFIER_VARIABLE_VARIABLE region"/>
<style foreground="rgb(0,0,0)" id="IDENTIFIER_VARIABLE"/>
<category name="PUNCTUATOR" style="PUNCTUATOR">
<token style="PUNCTUATOR_CLOSE_TAG" type="CLOSE_TAG"/>
<token style="PUNCTUATOR_OPEN_TAG" type="OPEN_TAG"/>
</category>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR"/>
<style foreground="rgb(204,0,0)" id="PUNCTUATOR_CLOSE_TAG"/>
<style font-weight="bold" foreground="rgb(204,0,0)" id="PUNCTUATOR_OPEN_TAG"/>
</colorizer>
prafuitu
 
Posts: 28
Joined: Thu Jul 05, 2007 3:49 pm

Re: [Colorization] PHP Colors like Dreamweaver

Postby d1gitalcrypto » Fri Jul 13, 2007 7:40 pm

Priet wrote:
Instructions: Copy and paste this into a new document and save it as a ".col" file. Then import this file under Settings --> Aptana --> Editors --> PHP Editor --> Colors.


I am new to Aptana..as in the last 5 minutes. I don't see a Settings anything on here. I have the file saved in the project root. How do I import it?

Thanks,
d1gitalcrypto
 
Posts: 4
Joined: Fri Jul 13, 2007 7:29 pm

Postby d1gitalcrypto » Fri Jul 13, 2007 7:46 pm

A little snooping has led to the following..

From main Interface -> Window -> Preferences -> Aptana

For anyone else that may be scratching their heads.

I have been looking for something like this so I could finally get out of Windows and start coding on Linux full time.

I am looking forward to PHP code completion in MS9.



:D
d1gitalcrypto
 
Posts: 4
Joined: Fri Jul 13, 2007 7:29 pm

Postby klucznik » Sun Aug 19, 2007 12:27 pm

Zend Studio:

Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<colorizer xmlns="http://www.aptana.com/2007/colorizer/1.0" language="text/php">
<category name="WHITESPACE" style="WHITESPACE"/>
<style foreground="rgb(128,128,128)" id="WHITESPACE"/>
<category name="LITERAL" style="LITERAL">
<token style="LITERAL_NUMBER" type="NUMBER"/>
<token style="LITERAL_STRING" type="STRING"/>
</category>
<style foreground="rgb(128,0,0)" id="LITERAL"/>
<style foreground="rgb(204,0,0)" id="LITERAL_NUMBER"/>
<style foreground="rgb(0,128,0)" id="LITERAL_STRING"/>
<category name="KEYWORD" style="KEYWORD">
<token style="KEYWORD_LOGICAL_OR" type="LOGICAL_OR"/>
<token style="KEYWORD_LOGICAL_XOR" type="LOGICAL_XOR"/>
<token style="KEYWORD_$THIS" type="$THIS"/>
<token style="KEYWORD_LOGICAL_AND" type="LOGICAL_AND"/>
<token style="KEYWORD_FUNCTION" type="FUNCTION"/>
<token style="KEYWORD_LIST" type="LIST"/>
</category>
<style foreground="rgb(0,0,255)" id="KEYWORD"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_OR"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_XOR"/>
<style foreground="rgb(128,0,0)" id="KEYWORD_$THIS"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LOGICAL_AND"/>
<style foreground="rgb(0,0,255)" id="KEYWORD_FUNCTION"/>
<style foreground="rgb(0,115,170)" id="KEYWORD_LIST"/>
<category name="ERROR" style="ERROR"/>
<style font-style="italic" font-weight="bold" foreground="rgb(255,0,0)" id="ERROR"/>
<category name="IDENTIFIER" style="IDENTIFIER">
<token style="IDENTIFIER_IDENTIFIER" type="IDENTIFIER"/>
<token style="IDENTIFIER_VARIABLE" type="VARIABLE">
<region length="1" name="VARIABLE region" offset="0" style="IDENTIFIER_VARIABLE_VARIABLE region"/>
</token>
</category>
<style foreground="rgb(0,0,0)" id="IDENTIFIER"/>
<style foreground="rgb(0,0,0)" id="IDENTIFIER_IDENTIFIER"/>
<style font-weight="bold" foreground="rgb(0,0,0)" id="IDENTIFIER_VARIABLE_VARIABLE region"/>
<style foreground="rgb(128,0,0)" id="IDENTIFIER_VARIABLE"/>
<category name="PUNCTUATOR" style="PUNCTUATOR">
<token style="PUNCTUATOR_OPEN_TAG" type="OPEN_TAG"/>
<token style="PUNCTUATOR_CLOSE_TAG" type="CLOSE_TAG"/>
<token style="PUNCTUATOR_DOUBLE_COLON" type="DOUBLE_COLON"/>
</category>
<style foreground="rgb(0,0,0)" id="PUNCTUATOR"/>
<style font-weight="bold" foreground="rgb(204,0,0)" id="PUNCTUATOR_OPEN_TAG"/>
<style foreground="rgb(204,0,0)" id="PUNCTUATOR_CLOSE_TAG"/>
<style foreground="rgb(0,0,255)" id="PUNCTUATOR_DOUBLE_COLON"/>
</colorizer>
klucznik
 
Posts: 1
Joined: Sun Aug 19, 2007 12:25 pm

Postby swamyveera » Wed Oct 24, 2007 6:28 am

Thanks, was of great help - but can someone provide the Javascript styling as well. Am doing some javascript coding with aptana and i find the colour styling for dreamweaver is much better.
Especially for JS like this
items : [{
title : 'Personal Information',
layout : 'form',
items : [{

i like the dreamweaver style of highligthing the opening and closing braces

Thanks
Vru
swamyveera
 
Posts: 5
Joined: Wed Oct 24, 2007 6:27 am

Postby Priet » Wed Oct 24, 2007 9:45 am

Why not do it yourself? It isn't that hard...
User avatar
Priet
 
Posts: 84
Joined: Thu Sep 21, 2006 9:56 am
Location: The Netherlands

Postby swamyveera » Thu Oct 25, 2007 12:39 am

great, thanks for your help. I thought i could save sometime by not dwelling through the settings.
Last edited by swamyveera on Thu Oct 25, 2007 12:41 am, edited 1 time in total.
swamyveera
 
Posts: 5
Joined: Wed Oct 24, 2007 6:27 am

Postby swamyveera » Thu Oct 25, 2007 12:40 am

great, thanks for your help. I thought i could save sometime by not dwelling through the settings.
swamyveera
 
Posts: 5
Joined: Wed Oct 24, 2007 6:27 am

<?IMPORT /> tag bad coloring

Postby shira_001 » Wed Jan 30, 2008 2:36 pm

Hi, I'm using <?IMPORT /> tag to load my HTC, like this:
Code: Select all
<?IMPORT NAMESPACE="myHtc" IMPLEMENTATION="button.htc" />

But from the "NAMESPACE" attribute till the end of the file the code turns gray. like this:

<?IMPORT NAMESPACE="myHtc" IMPLEMENTATION="button.htc" />...

in the settings I realized when I change the color for Pi Text under Literal it changes the gray to the color I specify. When I cancel the Pi Text color totally, it then uses the Literal color, but still from the "NAMESPACE" attribute till the end of the file, ignoring the colors of the following code.

Any ideas, for canceling the coloring of Literal, adding recognition of the <?import /> tag, something else?

I searched the eclipse folder for a *.col file with no success - possible? where are the default color settings defined?

Thanx
shira_001
 
Posts: 2
Joined: Wed Jan 30, 2008 11:56 am

Re: [Colorization] PHP Colors like Dreamweaver

Postby monobasic » Tue Feb 24, 2009 10:44 am

Great thank you very much for the themes!
Be sure that the .col file is utf-8 encoded - otherwise it will not import.
(Don't create the .col files with windows notepad... use Aptana or another Editor)
monobasic
 
Posts: 1
Joined: Tue Feb 24, 2009 10:41 am

Re: [Colorization] PHP Colors like Dreamweaver

Postby sakib000 » Sat Mar 14, 2009 7:08 pm

How to import it into aptana 1.2.4
sakib000
 
Posts: 1
Joined: Sat Mar 14, 2009 7:08 pm

Next

Return to Customizing and Extending Studio