[General] Help with mycode? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html) +--- Forum: General Support (https://community.mybb.com/forum-176.html) +--- Thread: [General] Help with mycode? (/thread-214791.html) |
Help with mycode? - bluedagger - 2017-12-14 So, I have mycode working for greentext >it does this, makes it green if you start a sentence with > It's like this: Regex: (\n|^)>(.*?)(\n|$)\ Replacement: $1<span style="color: #27ae60;">>$2</span>$3 I'd like to implement one more called orangetext. If you END your sentence with < it makes it orange Like this< Can anyone help me with the code? I tried but made a mess. RE: Help with mycode? - iAndrew - 2017-12-14 Which bit of code makes your text green if you use > ? RE: Help with mycode? - .m. - 2017-12-15 @iAndrew see this topic => Mycode for greentext? @bluedagger Quote:If you END your sentence with < it makes it orangeif you change it to < at the beginning of the text then that might be easy same as suggested earlier - by using YourCode plugin & code set to multi-line mode
RE: Help with mycode? - bluedagger - 2017-12-15 (2017-12-15, 03:31 AM).m. Wrote: @iAndrew see this topic => Mycode for greentext? Yes, changing the > for < is easy, that's exactly why I was asking for help. I'd rather do it the way I said, with the < at the end of the sentence instead of at the beggining. |