Open sterretjeToo opened 3 years ago
Additional question: How the hell do I get properly formatted code in github issues?
@sterretjeToo use Markdown code fencing, three backticks before and after the code:
code goes here
You can even get fancy and specify the language to get syntax highlighting!
```cpp
C++/Arduino code goes here
Thanks @per1234 , when you click <> in the menu, you only get two single backticks; will try to remember. Thanks for moving
It's ctags
that is not able to correctly parse multil-line raw literals.
It's unlikely that this will be fixed upstream (at least not soon).
A workaround may be to put the strings inside a .h file (that is not preprocessed) and include it from the main .ino.
Thank you.
@cmaglie
A workaround may be to put the strings inside a .h file (that is not preprocessed) and include it from the main .ino.
I'm not sure the .h is not parsed as I'm facing issue with this using a .h file. (https://github.com/arduino/arduino-ide/issues/363)
Please see https://forum.arduino.cc/t/including-javascript-in-a-webpage-served-by-espasyncwebserver/697109 where the issue was raised
Source code:
Content of C:\Users\sterretje\AppData\Local\Temp\arduino_build_600637\sketch\sketch_feb22a.ino.cpp
Please note the including of
#line
in the output that does not exist in the ino fileAdditional context
Additional reports
Related