The Daily Click ::. Forums ::. Klik Coding Help ::. custom recoloring?
 

Post Reply  Post Oekaki 
 

Posted By Message

Mr Icekirby



Registered
  18/12/2003
Points
  846
17th July, 2004 at 17:59:23 -

i want to recolor custom syntax, how can i do this, i have the string manipulater and rich edit extensions, i need some help though

 
Mr Icekirby says so!
OBEY ME!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
17th July, 2004 at 18:56:30 -

Use the string manipulator.


On keypress "enter" > (string manipulator)GetText$( "Rich Edit Object", 0, GetNChars( "Rich Edit Object" ) ) for keyword 0 ("pie")

(StringManipulator) On keyword# 0 found > (richedit)Select characters from KeyWordStart( "String Manipulator" ) to KeyWordEnd( "String Manipulator" )

set font colour to ("255,0,0")


This code will find the word 'pie' in the rich edit text and make it red.

Image Edited by the Author.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Mr Icekirby



Registered
  18/12/2003
Points
  846
17th July, 2004 at 20:12:20 -

i want to be able to go from ( to ) and also from $ to the first space and @ to the first space... how would i do this?

 
Mr Icekirby says so!
OBEY ME!

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
17th July, 2004 at 21:11:15 -

Buy MMF Pro so you can use my Regular Expressions object - otherwise, make your own complicated colouring system using a fastloop that goes over every character in the string.

 
n/a

Mr Icekirby



Registered
  18/12/2003
Points
  846
18th July, 2004 at 22:13:46 -

if could buy mmf pro, i would... but i can't...

i guess i have to do my own coloring then

 
Mr Icekirby says so!
OBEY ME!
   

Post Reply



 



Advertisement

Worth A Click