TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#SUBSTITUTE color reversion

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
nya



Joined: 25 Jun 2012
Posts: 39

PostPosted: Sat Sep 27, 2014 11:22 pm    Post subject: #SUBSTITUTE color reversion Reply with quote

Right now, you can use #HIGHLIGHT to just replace the color of something, and it knows how to reset the color to what it was before the #HIGHLIGHT match.

It'd be cool if there was some way you could tap into that functionality in #SUBSTITUTE as well, eg. maybe a special color code like <pre>, maybe even getting fancy so <pre> gives you the foreground and <PRE> gives you the background color.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Sep 28, 2014 1:53 pm    Post subject: Reply with quote

The code is overly complex as it is.

Highlights are checked after substitutions, so can simply use a substitution and a highlight to accomplish this.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group