Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems Installing Scintilla Wrapper

Status
Not open for further replies.

TBaz

Technical User
Jun 6, 2000
65
ES
I have Delphi 7 personal and I have to admit to being no expert when it comes to installing components. Those I have installed worked first time, but when one causes problems I'm stuck!

I'm writing a simple text editor and was after a memo which allowed coloured lines and keywords. I was told that one of the best syntax memos was one called Scintilla - and it's freeware.

Has anyone managed to get this working with Delphi? I've followed all the instructions, but the Scintilla_d7.dpk will not compile for me as it cannot find the DJCL70 package.

There's a section in the instructions that came with the wrapper saying that some sections use JVCL, but if they are not needed you can remove some files and edit one of the pas files. One of them didn't even exist, so I downloaded JVCL anyway - but that's a nightmare for the novice to install! :)

Sorry to be a dumbass, but I would appreciate some assistance.

Thanks in advance...

Barrie
 
I don't know about scintilla, but you might take a look at synedit. It is a syntax-highlighting component something like scintilla, only much lighter.

And it is written Delphi, so it is a native component, not a wrapper....

 
Hi

I've got that too, but unfortunately it's giving me problems as well. Yes, I know that I could be the problem! :)

Aparently, there's no way with synedit to set a whole line to the same colour. I want to highlight the line in green from the token word 'Rem' to the end of the line - as well as having highlighted reserved words and there's no obvious way to do it that I can see.

Also, I would like to be able to highlight phrases like 'Position Camera' and 'Object Angle X()' but you can only enter single words. Also, in the second example above, defining X as a reserved word isn't possible in the app I'm writing and defining X() doesn't work.

If there was a way around these niggles, SynEdit would be perfect for my needs.

I'm using the 'General' highlighter which has a Comments attribute but I'm unable to find out how to alter the way it works to apply to lines starting with 'Rem', though // works perfectly how I want Rem to work. Maybe there's a way to do this?...

TenerifeBaz
 
You could declare REM as a 'Comment for the rest of the line' like token.
Just like Delhpi's '//' ;-)

HTH
TonHu
 
Unfortunately, that's the bit I can't figure out! :(

Barrie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top