-
Notifications
You must be signed in to change notification settings - Fork 6k
Document raw string literals #29079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document raw string literals #29079
Conversation
Make the edits for raw string literals to most content. For the programming guide content, move samples, format and update existing content.
2201459
to
7364f58
Compare
docs/csharp/programming-guide/strings/snippets/StringLiterals.cs
Outdated
Show resolved
Hide resolved
/cc @KathleenDollard if you want to review. |
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
Adding @mimisasouvanh See here This is a new feature in C# 11. It looks like the syntax coloring for docs doesn't support this feature yet. Where should I track this? |
Co-authored-by: CyrusNajmabadi <cyrus.najmabadi@gmail.com>
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
string multiLine = """ | ||
"Hello World!" is typically the first program someone writes. | ||
"""; | ||
string embeddedXML = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know how we get mark down fixed for raw string literals? I just used a screens shot (Cyrus's suggestion)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, clear and concise. I noted only a few nits.
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/builtin-types/reference-types.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
* Update existing samples Make the edits for raw string literals to most content. For the programming guide content, move samples, format and update existing content. * warnings, and move one more sample. * first draft is completed. * fix build warnings and proofread. * fix snippet tags. * Apply suggestions from code review Co-authored-by: CyrusNajmabadi <cyrus.najmabadi@gmail.com> * respond to feedback. * respond to feedback. * move raw interpolated string literals to code * Apply suggestions from code review Co-authored-by: Tom Dykstra <tdykstra@microsoft.com> * respond to feedback. Co-authored-by: CyrusNajmabadi <cyrus.najmabadi@gmail.com> Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
Fixes #28941
Add raw string literals to the C# guide:
Internal review links:
The changes to the how to article weren't substantive. The location of the embedded sample code moved.
The article in the programming guide hadn't been updated in some time, so also had a general edit pass. You may want to disable whitespace to see the diffs more cleanly.