| View previous topic :: View next topic |
| Author |
Message |
Stephen R. Phillips Guest
|
Posted: Tue Dec 23, 2003 11:46 pm Post subject: Syntax highlighting... et al |
|
|
I've been considering abusing a Richtext object for syntax highlighting
etc. My biggest problem with such a thing is probably reinventing a wheel.
Are there objects out there that can highlight a specific syntax given a
particular rule set?
Does anyone have a suggestion on this?
Stephen
|
|
| Back to top |
|
 |
Cactus Guest
|
Posted: Wed Dec 24, 2003 10:43 am Post subject: Re: Syntax highlighting... et al |
|
|
| Quote: | etc. My biggest problem with such a thing is probably reinventing a wheel.
Are there objects out there that can highlight a specific syntax given a
particular rule set?
|
SynEdit is a very very great wheel!
But it sleep on my harddisk longer time.
Yes, who know how use the undocument component?
|
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Wed Dec 24, 2003 11:27 am Post subject: Re: Syntax highlighting... et al |
|
|
Remy Lebeau (TeamB) wrote:
| Quote: | Good luck. TRichEdit is not designed for that, so you're not going to get
much in the way of performance out of it.
|
If you want to go that way, have a look at the Robert Dunn's article
"Faster Rich Edit Syntax Highlighting" at
http://home.att.net/%7Erobertdunn/Yacs.html
It's very interesting IMHO.
| Quote: | Of course. There are many third-party syntax highlight components available
for download. I myself use TSynEdit ([url]http://synedit.sourceforget.net)[/url], but
there are many others available as well.
|
Personally, I use Scintilla ([url]http://www.scintilla.org/)[/url]. It's not a
component but it's really easy to use with BCB.
Michel
--
----------------------------------------
Michel Leunen
mailto:michel (AT) leunen (DOT) com
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
| Back to top |
|
 |
Stephen R. Phillips Guest
|
Posted: Fri Dec 26, 2003 6:15 pm Post subject: Re: Syntax highlighting... et al |
|
|
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote in
news:3fe8e2cd$1 (AT) newsgroups (DOT) borland.com:
| Quote: |
"Stephen R. Phillips" <cyberman (AT) socket (DOT) net> wrote in message
news:Xns945AC97924F87cybermans.pov.posts. (AT) 207 (DOT) 105.83.66...
I've been considering abusing a Richtext object for syntax
highlighting etc.
Good luck. TRichEdit is not designed for that, so you're not going to
get much in the way of performance out of it.
I have noticed this, kind of frustrating for the unwary.  |
| Quote: | Are there objects out there that can highlight a specific syntax
given a particular rule set?
Of course. There are many third-party syntax highlight components
available for download. I myself use TSynEdit
([url]http://synedit.sourceforget.net)[/url], but there are many others available
as well.
Yes... I suppose I need to also work on generating a new syntax for synedit |
(sigh). So many scripting languages so little time
Hopefully I can get it to happily work with what I want it too
I'm also looking at using it for an IDE. Thanks for the heads up and
direction. As ussual you having given your wisdom to people and I believe
as ussual it's rather useful to me :)
Thanks for all the responses as well. :)
Stephen
|
|
| Back to top |
|
 |
|