Page 1 of 1

support for google dart

Posted: Sun May 20, 2012 10:37 am
by tomc
Hi,

Are there plans for adding support for google Dart in the near future?

Thanks,
Tom

Posted: Sun May 20, 2012 12:59 pm
by jussij
Hi Tom,
Are there plans for adding support for google Dart in the near future?
I will look to add a Dart document type to the Zeus installer.

But in the mean time it is fairly easy to add some level of Dart support to Zeus.

Just do the following:

1) Create a Dart Keywords File
Save the following details to the c:\temp\dart.zki file.

Code: Select all

;
; Zeus Keyword Information File
; =========================================
;
; NOTE: To correctly import this file make sure it has a .zki file
;       extension.
;

[Syntax]
CommentStart01=/*
CommentEnd01=*/
NestsComments01=No
LineComment01=//
CommentStart02=
CommentEnd02=
NestsComments02=No
LineComment02=
Delimiters=#~!@$%^&*()[]{}<>=+/?|;:-,.
DelimitKeywords=No
IgnoreCase=No
Literal=\
ManageComments=No
Numbers=(0x*[0-9A-Fa-f]+[Hh]*)|([0-9]+(L*))
Preprocessor=#
Strings="'
TripleQuotes=No

[ReservedWords]
break
case
catch
class
const
continue
default
do
else
extends
false
final
finally
for
if
in
is
new
null
return
super
switch
this
throw
true
try
var
void
while

[ExReservedWords]
Pattern=
IsNested=No

[UserWords1]
bool
double
int
String

[ExUserWords1]
Pattern=
IsNested=No

[UserWords2]

[ExUserWords2]
Pattern=
IsNested=No

[UserWords3]

[ExUserWords3]
Pattern=
IsNested=No

[UserWords4]

[ExUserWords4]
Pattern=
IsNested=No

[UserWords5]

[ExUserWords5]

Pattern=
IsNested=No
2) New Document Type
Use the Options, Document Types menu and create a new Dart document type.

These are the only two details you need to enter:

Code: Select all

Extensions: dart
Description: Dart Document Type
3) Import the Keywords File
In the keywords section of the document type create above import the c:\temp\dart.zki keywords file created earlier.

4) Code Folding
Open the xFolder.ini file and change this line:

Code: Select all

C/C++=c;cc;cpp;cxx;c++;h;hh;hpp;hxx;h++;ox
to be this:

Code: Select all

C/C++=c;cc;cpp;cxx;c++;h;hh;hpp;hxx;h++;ox;dart
On Windows 7 the xFolder.ini file is found here:

Code: Select all

C:\Users\Jussi\AppData\Roaming\Xidicone\xFolder\xFolder.ini
On Windows XP the xFolder.ini file is found here:

Code: Select all

C:\Program Files\Zeus\xFolder.ini
5) Setting up the Compiler
Finally edit the Compiler section of the document type to run the dart2js utility.

Cheers Jussi