Last update March 7, 2012

Editor Support /
Text Pad



To configure TextPad for D
  1. Save the "D Language Syntax" code (at the bottom of the page) into a file called dlang.syn in the TextPad system directory.
  2. Under the menu option Configure select New Document Class...
  3. Enter a document class name such as D Language.
  4. Enter file mask: *.d.
  5. Select dlang.syn from the drop down list.
  6. Under the menu option Configure select Preferences...
  7. Go to the D Language section and set up your color preferences.
  8. stewartsplace.org.uk: .syn file
  9. penguinblotter.com: dlang.syn (dead link?)
based on http://dlanguage.netunify.com/38 (which is no longer available)

Comment

This is what I presently use for writing D programs. The only drawbacks are the project management isn't very sophisticated and you'll have to spend some time configuring the Tools section so you can compile and run without having to use a command prompt. The upshot is that it has some of the most solid keyboard and mouse handling I've ever seen. - Eric

D Language Syntax File

Save this text into a file called dlang.syn:

; TextPad syntax definitions for D

C=1

[Syntax]
Namespace1 = 6
IgnoreCase = No
KeyWordLength =
BracketChars = {[()]}
OperatorChars = -+*/<>!~%^&|=
PreprocStart = 
SyntaxStart =
SyntaxEnd =
HexPrefix = 0x
CommentStart = /*
CommentEnd = */
CommentStartAlt = /+
CommentEndAlt = +/
SingleComment = //
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart = "
StringEnd = "
StringAlt = `
StringEsc = \
CharStart = '
CharEnd = '
CharEsc =

[Keywords 1]		
abstract
alias
align
asm
assert
auto
bit
body
break
byte
case
cast
catch
cent
char
class
cfloat
cdouble
creal
const
continue
debug
default
delegate
delete
deprecated
do
double
else
enum
export
extern
false
final
finally
float
for
super
null
new
short
int
long
ifloat
idouble
ireal
if
switch
synchronized
return
goto
struct
interface
import
static
override
in
out
inout
private
protected
public
invariant
real
this
throw
true
try
typedef
ubyte
ucent
uint
ulong
union
ushort
version
void
volatile
wchar
while
with
function  
instance

[Keywords 2]

[Keywords 3]


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: March 7, 2012 20:31 (diff))