Forum Discussion
MathNotermans-9
3 months agoCommunity Member
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 ;-)
- ChrisHodgsonCommunity 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! 😱
- SamHillSuper Hero
Yep, I have to write in external IDE. Would be good if it was a bit more usable to avoid switching between apps.