Docs: Improve Syntax Highlighting #54536
Labels
area: adev
Angular.dev documentation
area: dev-infra
Issues related to Angular's own dev infra (build, test, CI, releasing)
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Describe the problem that you experienced
Angular leverages embedded languages (have a combination of HTML, Typescript and CSS) in one file. A lot of syntax highlighter are not necessarily good with embedded language, this includes also highlighter js which is used in the new documentation.
Enter the URL of the topic with the problem
https://angular.dev/guide/components
Describe what you were looking for in the documentation
I'd expect HTML code to have HTML highlighting (+angular syntax for control flow syntax), the examples shown on that very page have Typescript syntax highlighting but not HTML for the template part.
Describe the actions that led you to experience the problem
Look at code examples in the new docs
Describe what you want to experience that would fix the problem
vs proper highlighting of the same code
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
No response
If the problem is browser-specific, please specify the device, OS, browser, and version
No response
Provide any additional information here in as much as detail as you can
The text was updated successfully, but these errors were encountered: