1) Use the Options, Document Types menu to create a new document type.
2) Fill in the details for the document type as follows:
Extensions: dart
Description: Dart Document Type
3) Save the following details to the dart.zki file:
Code: Select all
;
; Zeus Keyword Information File
; =========================================
;
; This is a keyword information file for the Zeus IDE:
;
; http://www.zeusedit.com/index.html
;
; This file can be used to create or configure the Keywords section
; of the Zeus document type.
;
; 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=Yes
[ReservedWords]
abstract
as
assert
break
case
catch
class
const
continue
default
do
dynamic
else
export
extends
external
factory
false
final
finally
for
get
if
implements
import
in
is
library
new
null
operator
part
return
set
static
super
switch
this
throw
true
try
typedef
var
void
while
with
[ExReservedWords]
Pattern=
IsNested=No
[UserWords1]
[ExUserWords1]
Pattern=
IsNested=No
[UserWords2]
Object
String
bool
double
int
num
[ExUserWords2]
Pattern=
IsNested=No
[UserWords3]
Completer
DateTime
Element
Future
HttpRequest
List
Map
Set
Uri
WebSocket
math
print
[ExUserWords3]
Pattern=
IsNested=No
[UserWords4]
[ExUserWords4]
Pattern=
IsNested=No
[UserWords5]
[ExUserWords5]
Pattern=
IsNested=No
5) To get the code folding to work open this file:
Code: Select all
C:\Users\<your user ID>\AppData\Roaming\Xidicone\xFolder\xFolder.ini
Code: Select all
C/C++=c;cc;cpp;cxx;c++;h;hh;hpp;hxx;h++;ox;r;sqc;dart;
7) Make sure the Dart SDK bin folder C:\dart\dart-sdk\bin is in the system PATH.
8 ) Edit the Zeus Dart document type and in the compiler section define this as the compile command line (and check the display on errors and warnings option):
Code: Select all
dartanalyzer.bat "$fn"