Improve c/d/hecho text formatting#4240
Conversation
Now includes <b>, <i>, and <u>.
Now supports <b>, #b, <i>, #i, <u>, #u...
|
Hey there! Thanks for helping Mudlet improve. 🌟 Test versionsYou can directly test the changes here:
No need to install anything - just unzip and run. |
|
Could you add some Unit Tests for these new features? They are located at https://github.com/Mudlet/Mudlet/tree/875b74f5f580327755c69d6c31b211a5ab503c18/src/mudlet-lua/tests |
vadi2
left a comment
There was a problem hiding this comment.
Works well. Could you look into adding the tests?
|
Could you update the docs for this? |
|
hh boy. just updated to the latest dev as of last night... I have trigger problems with selectString() now... |
|
could this change have affected this? |
|
This one is OK, I've traced it to f94a494. |
* improve cecho text formatting Now includes <b>, <i>, and <u>. * improve d/hecho text formatting Now supports <b>, #b, <i>, #i, <u>, #u... * Add unit tests for text formatting


Brief overview of PR changes/additions
This adds the ability to include other text formatting options in echoes.
At the moment it works like this:
I'm not super thrilled about the way it looks in hecho, but I tried to keep it consistent. Also as a happy accident this ended up fixing a bug with the reset tag for hecho. It wasn't working for #r beforehand (at least for me) due to some regex parsing issues.
Motivation for adding to Mudlet
It would be great if c/d/hecho could use underline, bold, italics, and so on. Right now all of those functions are limited to colour only.
Other info (issues closed, discussion etc)
Referring to issue #3084.