Replacing with colour

General discussion about the Genesis Web Client located at https://www.genesismud.org/play/

Moderator: Eowul

Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Exellinor
Novice
Posts: 3
Joined: 18 Apr 2022 06:38

Replacing with colour

Post by Exellinor » 08 Dec 2022 05:34

When I use

Code: Select all

gwc.connection.replace
, is there a way to make the replaced text red?
thank you. :)

User avatar
Skythus
Adventurer
Posts: 91
Joined: 12 Oct 2019 21:59

Re: Replacing with colour

Post by Skythus » 09 Dec 2022 04:20

I know for sure there is a way to highlight color, if you aren't replacing text:

Code: Select all

gwc.output.color("lightgreen");
will turn matches a light green color.

I would think there would be a way to replace a string and add color but have not used the web client in a long time. You might be able to add that after the replace line!

Drazson
Titan
Posts: 499
Joined: 24 Jan 2016 21:27

Re: Replacing with colour

Post by Drazson » 09 Dec 2022 08:47

Help around these topics is usually more plentiful in the discord server, plus you can look up numerous previous answers. I'm just noting that as an option!

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/