char webpage[] PROGMEM = R"=====(
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.6.6/svg.min.js"></script>
</head>
<body>
</body>
</html>
)=====";
I found a problem when using the raw string literal in Arduino IDE. My code cannot compile if i have http:// link inside the string.
I found that it should be related to how Arduino IDE thought the string after // are comments and during compile time those string are ignored and my codes break.
It looks like the arduino ide's compiler removes all //comment in the code first, before it try to compile the raw string literal and then cause the issue.
As a test I try to debug it by changing my code to https:/-/ the program can be compile as now there is no // in the raw string literal
Is there any workaround?