[analyzer] Update diagnostic messages to use markdown codeblocks

To prepare for the site dropping prettify.

Change-Id: I90367bd67ae0216572aa9defe6aa180a34942e35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349761
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Parker Lougheed 2024-02-02 18:42:28 +00:00 committed by Commit Queue
parent 6d3f389e59
commit 5b980d6995
2 changed files with 2915 additions and 2918 deletions

File diff suppressed because it is too large Load diff

View file

@ -65,10 +65,7 @@ class ErrorCodeDocumentationBlock extends ErrorCodeDocumentationPart {
this.uri});
@override
String formatForDocumentation() => fileType == 'dart' || fileType == 'yaml'
? ['{% prettify $fileType tag=pre+code %}', text, '{% endprettify %}']
.join('\n')
: ['```$fileType', text, '```'].join('\n');
String formatForDocumentation() => ['```$fileType', text, '```'].join('\n');
}
/// A portion of an error code's documentation. This could be free form