Forum Replies Created

  • JeanFrancois Poirier

    September 21, 2023 at 9:15 am in reply to: Replace words wrapped in asterisks with Bold

    Hi Filip, thanks again for your help.

    I came with another problem :p

    Using the same technic, i was able to change color of a text wrapped in a “^” symbol.

    However, if i want to combine both i get stuck, the first i’ve created will always take the lead, and the other cannot appear.

    (I’ve attached a screenshot so you can see)

    So is there a way to combine both ?

    I suppose i had to use a switch method on the color fields, but i’m not even sure what to write on conditions…

    It will look like something like that :


    condition_A : Wrapped with *;

    condition_B : wrapped with ^;

    condition_C : wrapped with both;

    switch (true){
    case condition_A :
    Make the text in bold ;
    break;
    case condition_B :
    Make the text in red;
    break;
    case condition_C :
    Make bold and red;
    break;
    default:
    do nothing;
    };

    Can you help me on this one please ? Thank you

  • Wow your code is very clever, and it works fine thank you !

    I don’t know if you have the habit to use it or if you just wrote that instantly, but you should try to publish it somehow, i’m sure i’m not the only one to asked for it.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy