ID:133410
 
Hi is there something like an another website where i can write code neatly like in Dream maker and check for errors? so that i can use it when i dont have access to DM
You can write code in Notepad and save it as a .dm file. Then take the DM.exe program from your C:\Program Files\BYOND\bin folder and stick it on a floppy disk. You should be able to compile with it and get an error report.
In response to Xooxer
yes.. but im quite messy and got used to having the "verb, proc" etc in blue and compiling it straight away. would be nice to be able to compile without DM.exe
In response to Gogeta126
Um, you can't compile code without a compiler. DM.exe isn't Dream Maker, it's just the command-line compiler. It's only about 20KB, so you could even email it to yourself and have a copy online if you don't want to lug around a floppy (though, BYOND is also online, so....)

Syntax highlighting is available in a variety of text editors. I like TextPad, myself. You'll have to define the highlight for DM code, but that shouldn't be too hard.

[edit]

Here, I just made this syntax definition file for TextPad so it can highlight DM files. Just save it as dm.syn in the Samples folder in your TextPad install directory. You can then create a new document class (menu->Configue->New Document Class...) and tell TP to use this dm.syn file to highlight files of type *.dm, *.dme, *.dms, *.dmp, *.dmm, *.dmf. Then just open any DM code file in TextPad and it will automatically be highlighted for you. (probably want to adjust the colors to suit your tastes)

; TextPad syntax definitions for BYOND's DM language
;
; created by Andrew "Xooxer" Arnold
; September 10, 2008

C=1

[Syntax]
Namespace1 = 6
IgnoreCase = No
KeyWordLength = 0
BracketChars = {}[]()
OperatorChars = []().//:~/!-+*%<=>&^|?
PreprocStart = #
HexPrefix =
SyntaxStart =
SyntaxEnd =
CommentStart = /*
CommentEnd = */

CommentStartAlt =
CommentEndAlt =
SingleComment = //
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = No
StringStart = "
StringEnd = "
StringAlt =
StringEsc = \
CharStart = '
CharEnd = '
CharEsc = \

[Keywords 1]
break
new
del
for
global
var
proc
verb
set
static
arg
const
goto
if
in
as
continue
return
do
while
else
switch
tmp
to

[Preprocessor keywords]
#define
#elif
#else
#endif
#error
#if
#ifdef
#ifndef
#include
#undef