Skip to content

const String index_html_string PROGMEM = R"rawliteral( cause Ctrl-T feature to no longer work. #11497

Closed
@roblatour

Description

@roblatour

I am using the latest nightly build 1.8.14 2021/05/07 12:33

Near the top of my code, I have a global const defined as follows:

`const String index_html_string PROGMEM = R"rawliteral(

)rawliteral";`

defined in that way, my sketch compiles and runs just fine. However, in the IDE the Ctrl-T feature to autoindent my code no longer works.

I have found that if I put quotes around the literal as follows:

`const String index_html_string PROGMEM = R"rawliteral("

")rawliteral";`

the sketch compile fine, and the Ctrl-T feature works again, but the program does not run fine as the opening and closing quotes then become included as part of the string itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDEType: BugType: DuplicateAnother item already exists for this topicUpstream notifiedRelated to a software component maintained by someone else. They have been notified of it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions