I recently upgraded to IDE 2.2.1, and have noticed the absence of the very useful feature "Copy as HTML". I used to sometimes place chunks of formatted Arduino code on my website when making little tutorials, but now I've upgraded to the latest IDE, this nice function appears to have disappeared. Is there a way I can turn it back on?
Ctrl + Alt + C used to be a keyboard shortcut for this too, but sadly now also does not work.
So in that comment, copying the code to a previous version of the IDE and then copying as HTML is reported as a workaround, but also, thank for sharing the javascript ideas too.
It's a much neater result (in terms of code) than the Arduino IDE "copy as HTML" output anyway.
Can it be configured to "wrap" test to the next line when the text is wider than the window? Just thinking about mobile browsing on narrow vertical screens.