Page 4 of 6

Posted: Fri Apr 25, 2008 3:48 pm
by ts-soft
srod wrote:Try pasting some unicode charcaters into it! :)
have i to use a special font?
srod wrote: Is the original RAEdit source available by any chance?
https://fbedit.svn.sourceforge.net/svnr ... Ed/RAEdit/

greetings
Thomas

//edit
to slow :wink:

Posted: Fri Apr 25, 2008 4:00 pm
by srod
Yes, having looked at the source; it has been assembled for Ansi operations. I'm unsure at this stage how much work would be involved in creating a Unicode version?

**EDIT : I'll answer my own question; a huge amount of work to assemble a unicode version! :) The string literals and API calls are one thing, -these can all be altered easily enough. It is the internal representation of 'characters' which would pose the biggest obstacle.

Posted: Fri Apr 25, 2008 4:32 pm
by hallodri
Have fun :lol:

Posted: Fri Apr 25, 2008 5:37 pm
by srod
hallodri wrote:Have fun :lol:
Swine!

:lol:

I reckon it would actually be easier to code a new control from scratch in Purebasic. :)

...and before you comment, -no I haven't got the time! :wink:

Posted: Sat Apr 26, 2008 10:10 am
by liverol
srod wrote:Yes, having looked at the source; it has been assembled for Ansi operations. I'm unsure at this stage how much work would be involved in creating a Unicode version?

**EDIT : I'll answer my own question; a huge amount of work to assemble a unicode version! :) The string literals and API calls are one thing, -these can all be altered easily enough. It is the internal representation of 'characters' which would pose the biggest obstacle.
it will be great if we can use the unicode double-bytes characters in the editor!!!

Posted: Sat Apr 26, 2008 10:21 am
by srod
Well, the work iinvolved in creating a truly unicode version of this library would take far more time than I have available at the moment. Installing the Masm32 package aside, you would need to alter all string literals (there are only a few mind) and charge through all of the include files (user32.inc, gdi32.inc... etc.) altering a million and one 'equates' to ensure that the wide string functions are being used. It does not look like any kind of conditional assembly is being used to switch between Ansi and Unicode api functions etc. so you will have to use good old search and replace!

Now even when this is done there remains the 'small' problem of physically converting all of the RAEdit asm code so that it uses unicode strings internally. This is the greatest problem and one really that only the original author is equipped to do.

Personally, I would rather write a custom editor from scratch than attempt the conversion! :wink:

Posted: Sat Apr 26, 2008 11:46 am
by liverol
get it,and
whatever you do, we'll be there watting for you :P

Posted: Sat Apr 26, 2008 1:40 pm
by kawasaki
Great library :)

Would it be at all possible to add the ability of seperate fonts for different syntax styles??

Posted: Sun May 11, 2008 7:33 pm
by ts-soft
kawasaki wrote:Would it be at all possible to add the ability of seperate fonts for different syntax styles??
Sry, no

Update:
Small Bugfix for working with Beta 5


http://www.realsource.de/downloads/doc_ ... editgadget

Posted: Sun May 11, 2008 8:22 pm
by X
The download must be off line.

No matte which option I choose, it takes me to a list of downloads for various components. It's an endless loop ...

Posted: Sun May 11, 2008 8:50 pm
by hallodri
now works, thanks

Posted: Mon May 12, 2008 1:35 pm
by ricardo
First, congratullations, your libe rocks!!

2 Questions:

1.- What the purpose of "!wend" in RaEditAddDefBlock(#RaEdit,"while !wend", "wend", #BD_INCLUDELAST)?

2.- Using in javascript with "function" and "}" i want to find the last }, because there can de an }else{. Any ideas?

Posted: Mon May 12, 2008 1:45 pm
by ts-soft
ricardo wrote: 1.- What the purpose of "!wend" in RaEditAddDefBlock(#RaEdit,"while !wend", "wend", #BD_INCLUDELAST)?
This is for ignore both word in one line.

Code: Select all

While a : Wend

Posted: Mon May 12, 2008 2:07 pm
by hallodri
ricardo wrote: 2.- Using in javascript with "function" and "}" i want to find the last }, because there can de an }else{. Any ideas?
try "{","}", many blocks, but works ;)

Posted: Mon May 12, 2008 2:35 pm
by ricardo
hallodri wrote:
ricardo wrote: 2.- Using in javascript with "function" and "}" i want to find the last }, because there can de an }else{. Any ideas?
try "{","}", many blocks, but works ;)
Fails if one line is "}else{", at least in my tests :(