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
Syntax highlighter with RichEdit
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Make a RTF file in Wordpad, and rename to txt, you can see the things you need in there.
Regards,
Berikco
http://www.benny.zeb.be
Here an example using RTF commands.Originally posted by WolfgangS
has someone already written a syntax highlighterer with El_Choni's RichEditLibrary or have some ideas how to do it ?
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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
- Some very nice great cool things

Regards,
Berikco
http://www.benny.zeb.be
Well i'v seen some things, but don't know what will be ready for release.Originally posted by WolfgangS
@Berikco: What 'new things' ?
- Some very nice great cool things
Regards,
Berikco
http://www.benny.zeb.be
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm