BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syntax highlighting... et al

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Stephen R. Phillips
Guest





PostPosted: Tue Dec 23, 2003 11:46 pm    Post subject: Syntax highlighting... et al Reply with quote



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





PostPosted: Wed Dec 24, 2003 10:43 am    Post subject: Re: Syntax highlighting... et al Reply with quote



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





PostPosted: Wed Dec 24, 2003 11:27 am    Post subject: Re: Syntax highlighting... et al Reply with quote



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





PostPosted: Fri Dec 26, 2003 6:15 pm    Post subject: Re: Syntax highlighting... et al Reply with quote

"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. Smile


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 Wink
Hopefully I can get it to happily work with what I want it too Smile
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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.