Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Syntax Highlighting Dll?

Author
Message
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 7th Aug 2005 03:31 Edited at: 7th Aug 2005 03:31
For IonRay IDE, I need a way to highlight syntax. I've tried using Rich Edit commands, but they are quite slow. I've looked into CodeMax, but would like to know of any other syntax highlighting dlls (preferably cheaper than CodeMax , but I am willing to pay some money)

Thanks,

-Xol

Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 7th Aug 2005 03:39 Edited at: 7th Aug 2005 03:39
Scintilla is a rich text .dll that can do exactly what you want - the new PureBasic IDE is made with it, as well as jaPBe (another IDE).

http://www.scintilla.org

~It's a common mistake to make, the rules of the English langauge do not apply to insanity~
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Aug 2005 12:43
Quote: "preferably cheaper than CodeMax "


Tis free, no?

There is also a dll called CodeSense which does intellisense to boot as well as codemax and that was DEFINATELY free. If it was the price that put you off, email me and I can send you the zip.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Undercover Steve
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location: Vancouver, Little Canada(Washington)
Posted: 7th Aug 2005 13:57
ok..maybe I am tired but isnt what you just stated..illegal<.<
Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 7th Aug 2005 14:00
Scintilla is free btw.

~It's a common mistake to make, the rules of the English langauge do not apply to insanity~
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Aug 2005 14:02 Edited at: 7th Aug 2005 14:04
CodeSense is free software. Written by some guy who I can't remember the name of. He's never started charging for that - it's been free software as far as I can tell.

Codemax is the software codesense is based on. Last time I checked that was free also but if they've released a new version you have to pay for - I'm pretty sure that doesn't influence the legal status of the old version.

[edit]

There's also this web site that details how to use codesense, there's a download there as well:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=56450&lngWId=1

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 7th Aug 2005 16:07
CodeMax now costs $200 US, a little more than I'd be willing to pay for making a free IDE. I'll check out Scintilla and Codesense, thanks.

-Xol

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Aug 2005 17:49
Hmm - I wonder what made them do such a leap from free to $200. Perhaps they released a new version (there are several sites describing codemax as free, so I can only assume that's what happened - I can't imagining suddenly slapping a price tag on some free software would be successful).

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 7th Aug 2005 17:57
They have a trial version that doesn't run out (it has a watermark, etc.), but I'd rather use a simpler solution like Scintilla. I simply need a Rich Edit that has syntax highlighting. Not half an IDE made for me

-Xol

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 7th Aug 2005 18:01 Edited at: 7th Aug 2005 18:15
Have a look on sourceforge, there are usually some interesting projects on there.

I know there are some simple highlighting components out there, but they require a degree in space physics to get the lexical parser set up correctly. If you like Java then there is www.swingall.com, but it would be a task getting it to work in DB

Edit, other things I have found that look interesting

http://www.vbcity.com/pubs/article.asp?alias=enh_richedit
http://www.cpcug.org/user/clemenzi/technical/Languages/RichEdit.htm
http://sourceforge.net/projects/synedit/

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Aug 2005 21:11
Quote: "I simply need a Rich Edit that has syntax highlighting. Not half an IDE made for me "


Codesense does that - iirc the only extra bits it has is window splitting (dragging a slider to create two separate windows) and hte aforementioned intellisense which I can't get to work

What language are you using? If it's vb6 I've got some code I wrote to set it up.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 7th Aug 2005 21:28
He's using dbpro and wants a dll so he can call the functions in it.

<a target="main" href="http://aquilus.kashkreations.com">Aquilus IDE</a>
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 7th Aug 2005 21:31 Edited at: 7th Aug 2005 21:38
Is codesense available as a dll. I'm not above distributing a free dll with my project either. Okay I looked and it only seems like it's an ocx (ActiveX control). Is there anyway to run an ActiveX Control from DBPro?

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 7th Aug 2005 22:02 Edited at: 8th Aug 2005 02:45
No, ActiveX controls/dlls can't be called from DBpro, but there might be an explanation of how to do so here:
Visual Basic Plugins for DBP - Support Resource

I've looked at Scintilla and it looks great, except that I can't quite figure out how to make it recognize DBp syntax.

There always seems to be at least one of a few problems with these dlls:
- Available in souirce code only - not compiled. (I don't have a C++ compiler)
- Not DBpro compatible (ActiveX)
- Can't easily add commands to be highlighted from the program
- Incompatible with RichEdit messages (this is a small issue, but it still is one)
- Creation through CreateWindowEx (small issue; it could be figured out)
- And, of course, too expensive (I'm only paying $200+ US if it's exactly what I want)

-Xol

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Aug 2005 01:25
Quote: "Okay I looked and it only seems like it's an ocx (ActiveX control). Is there anyway to run an ActiveX Control from DBPro?"


Woah woah - you want a syntax highlight control that can be used with DBPro? I don't think you're going to get one - everything mentioned are windows controls or activex controls - you're not going to get anything for DBPro

You could try writing one yourself, but it would take a whle. You could just use vb.net? (free version available for download?)

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 8th Aug 2005 02:42 Edited at: 8th Aug 2005 02:47
Maybe Codesense plus something else and someone could write a DBPro compatible dll but that's all I see for now. My option was going to do it in house and make a keyword ini parser to load the commands to memory and use richedit from there.

I've since given up on it(callbacks became an issue for windows messages) and you can get get my most recent source here Xolo.
http://aquilus.kashkreations.com
It's in downloads. It better rebar support than what I showed you before and you might find a few interesting things in it.

I've decided to move on to C++ and I'm now researching open source 3D engines available for commercial products.

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 8th Aug 2005 02:48
Yes, I'll probably have to use richEdit commands. I might be able to make a very simple syntax highlighter, or use a more user-based system suggested to me.

-Xol

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Aug 2005 12:42
There is some code on the net somewhere for syntax highlighting using only the windows form 6.0 richedit control - but it's in VB6.

Most use the richedit properties (selStart etc.) to acheive it.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 8th Aug 2005 12:49
Best thing would be to right something in VB then DLL it. If you want I can post the DLL i use and use ZKAT's dll converter for use in DBP

Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 8th Aug 2005 20:07
Has anyone here actually used Scintilla? It's not exactly the most user-friendly tool to setup and use in your code.


My "everyone else has one so why can't I?" blog: http://www.jeku.com/blog/
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 10th Aug 2005 12:23
Im still on the search for another alternative, unless i can be assured that CODESENSE will work for VB.NET im not touching it.

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th Aug 2005 14:23
Try it yourself?

Ask Jeku. He's used Codemax which is identical to codesense is make up, and he's got it working in .net.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 10th Aug 2005 15:27
If Codesense works in vb6 then it should work in .Net. If you add it as a reference then .Net will do all the interop stuff in the background for you. You may not get it in the toolbox though, you would probably have to do something like.

Dim codeBox as new CodeSense.CodeSenseBox
me.controls.add(codeBox)

PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 11th Aug 2005 20:06
No I asked Jeku and he said he wa the only one who could get it to work...

Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 11th Aug 2005 22:50
I got it to work--- but the bloody thing was ActiveX, which .NET isn't too fond of, so it wouldn't actually run on any other computer other than mine. I couldn't figure it out for the life of me, so I will never use ActiveX with .NET again


My "everyone else has one so why can't I?" blog: http://www.jeku.com/blog/

Login to post a reply

Server time is: 2024-11-15 14:45:22
Your offset time is: 2024-11-15 14:45:22