Page 1 of 1

Posted: Sat Sep 28, 2002 8:45 pm
by BackupUser
Restored from previous forum. Originally posted by WolfgangS.

HI !
has someone already written a syntax highlighterer with El_Choni's RichEditLibrary or have some ideas how to do it ?

I know there is already a syntaxhighlighter sourcecode written in PB, but it is still in Fred's treasure box ...

MFG
:)WolfgangS

Posted: Sat Sep 28, 2002 9:17 pm
by BackupUser
Restored from previous forum. Originally posted by Berikco.

I have seen it, The new PB 3.40 Editor is completely written in PB.
The first version lookt exacly as the old one.
Last version i see lookt and whas a lot better, very much new things.
Fred will release when its ready...wright Fred?

Regards,

Berikco

http://www.benny.zeb.be

Posted: Sun Sep 29, 2002 2:07 am
by BackupUser
Restored from previous forum. Originally posted by fred.

Exactly. Should be for v3.40. BTW the syntax highlightning in PureBasic Editor is very complex, completely based on the RTF stream in.. so..

Fred - AlphaSND

Posted: Sun Sep 29, 2002 2:09 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

@ Fred!

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten

Posted: Sun Sep 29, 2002 5:55 pm
by BackupUser
Restored from previous forum. Originally posted by Berikco.
Originally posted by WolfgangS
has someone already written a syntax highlighterer with El_Choni's RichEditLibrary or have some ideas how to do it ?
Here an example using RTF commands.
Make a RTF file in Wordpad, and rename to txt, you can see the things you need in there.

Code: Select all

Global hwndGlobal buf$
Buf$="{\rtf1\ansi\ansicpg1252\deff0\deflang2067{\fonttbl{\f0\fswiss\fcharset0 Arial;}}"
buf$+"{\colortbl ;\red255\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red255\green0\blue255;\red128\green0\blue0;}"
buf$+"\viewkind4\uc1\pard\cf1\f0\fs40 PureBasic, \cf2 feel\cf1  \cf3 the\cf1  \cf4 pure\cf1  \cf5 power\cf0\fs20\par}"
hwnd= OpenWindow(1, 200, 100, 500, 250 ,#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget| #PB_Window_SizeGadget,"PB Window 1")
;
If hwnd
  *RichEditGadget = CreateWindowEx_(#WS_EX_CLIENTEDGE, "RichEdit20A", 0, #WS_CHILD | #WS_VISIBLE | #ES_MULTILINE | #ES_AUTOHSCROLL | #ES_AUTOVSCROLL | #ES_WANTRETURN | #WS_HSCROLL | #WS_VSCROLL, 10, 10, 400, 200, WindowID(), 1, GetModuleHandle_(0), 0)
  SendMessage_(*RichEditGadget, #WM_SETTEXT,0, @buf$)
  Repeat
  Until WaitWindowEvent()=#PB_Event_CloseWindow 
EndIf
;
End


Regards,

Berikco

http://www.benny.zeb.be

Posted: Sun Sep 29, 2002 9:03 pm
by BackupUser
Restored from previous forum. Originally posted by WolfgangS.

Hi !
>Last version i see lookt and whas a lot better, very much new things.
@Berikco: What 'new things' ?
@MrVainSCL: ?
@Berikco: Thank you for the info

MFG
:)WolfgangS

Posted: Sun Sep 29, 2002 9:45 pm
by BackupUser
Restored from previous forum. Originally posted by Berikco.
Originally posted by WolfgangS
@Berikco: What 'new things' ?
Well i'v seen some things, but don't know what will be ready for release.
- Some very nice great cool things

:)




Regards,

Berikco

http://www.benny.zeb.be

Posted: Tue Oct 01, 2002 3:10 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

Now shut up, Berikco !! :)

They will see it with 3.40...

cya,
...Danilo

(registered PureBasic user)

Posted: Tue Oct 01, 2002 11:29 am
by BackupUser
Restored from previous forum. Originally posted by fred.

Surprise, surprise :)

Fred - AlphaSND