Forum Discussion

MathNotermans-9's avatar
MathNotermans-9
Community Member
20 days ago

Code in a post

What i really love as improvement in the new community.
The fact you now can add code... as code...

const texts = document.querySelectorAll('[data-acc-text="text2Change"]');
gsap.to(texts, {duration:0.7,scale:1.5});
texts.forEach(text => {
    const txt = text.querySelector('text');
    if (txt) {
      txt.style.fill = "#C0504D";
    }
  });

And it is nicely colorcoded too.
Now implement this into Storyline too ;-)

  • ChrisHodgson's avatar
    ChrisHodgson
    Community Member

    Agreed! The syntax highlighting really aids with readability.

    I'd like to see similar improvements added to the JavaScript Editor window in Storyline. There's no reason for the font to be so small! 😱