RaEditGadget Userlib

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

Have fun :lol:
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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:
I may look like a mule, but I'm not a complete ass.
liverol
User
User
Posts: 26
Joined: Sat Jul 14, 2007 3:21 am

Post 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!!!
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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:
I may look like a mule, but I'm not a complete ass.
liverol
User
User
Posts: 26
Joined: Sat Jul 14, 2007 3:21 am

Post by liverol »

get it,and
whatever you do, we'll be there watting for you :P
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

Great library :)

Would it be at all possible to add the ability of seperate fonts for different syntax styles??
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post 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 ...
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

now works, thanks
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post 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 ;)
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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 :(
Post Reply