With javascript I can print styled logs on the console like e.g. this:
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
which will result in:
Is there any way I can do the same using Scala.js? The standard println does not seem to have this functionality.
*Edit: Of course one could always use scala.scalajs.js.eval for such cases but I'd prefer a more "scala native" way:
js.eval("""
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
""")
