[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ANN: CodeEditor v0.1
From: |
Bjoern Giesler |
Subject: |
ANN: CodeEditor v0.1 |
Date: |
Mon, 11 Feb 2002 17:54:01 +0100 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've hacked together a first attempt at a sourcecode editor. It's far
from complete, but whoever wants to take a look (and submit bugfixes :-))
is very welcome. Please be gentle, though -- this is my first stab at a
larger project in GNUstep.
You can download it at
http://giesler.myip.org/bjoern/GNUstep
A screenshot is there as well.
The beast is centered around a subclass of NSTextView that is
encapsulated in a loadable bundle and does all the actual work; the
application proper is just a small wrapper that loads the bundle and does
file handling. (Philippe, this is according to what we talked about -- we
can integrate it as a bundle into PC.app now.)
Current features include:
o Language independence (regex-based 'rulesets' determine
the semantic meaning of code fragments, and NSUserDefaults
determine what those fragments end up looking like)
o Fontification; either automatic or upon pressing of Alt-f
o Automatical indentation (rather untested)
o Marking and navigating in blocks (Alt-Shift-{Left,Right}Arrow)
Current bugs include:
o It's too slow (~8secs on my box to fontify NSTextView.m (4000
LOC)).
o It's largely untested. Take it apart, folks! :-)
On the slowness issue: I've noticed that my fontification code takes
about 1/3rd of the time, and NSTextView/NSLayoutManager take 2/3rd. Is
there any way to speed this up? I am already encapsulating everything in
[-beginEditing]/[-endEditing] blocks.
Regards,
--Björn
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBPGf3KcjvWsQJsktKEQL2xgCgjlhBtAO7rqVMch6LuDqq2xRznjYAn0ku
tfNzTyWzSH9Mh33tZOrP3qTx
=DlLv
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ANN: CodeEditor v0.1,
Bjoern Giesler <=