Open johntempest opened 1 year ago
"I would particular like to be able just perhaps see the highlighting that has been used in the book."
It is impossible to achieve that because the highlighting used in the print book is manually applied by editors to show what has been added or changed since a previous block of code was written. Code editors can only apply formatting based on parsing the code and applying automated rules.
There might be extensions to show comments always as italic but I do not have any experience with them myself so I cannot make any recommendations.
I would like to be able to use the same syntax and semantic highlighting in the Visual Studio 2022 code editor as appears in the code examples in the cs11dotnet7 book. I have looked at the Tools/Options/Environment/Fonts and Colors settings in VS 2022, but the options or settings for symbols in C# do not seem to be there. For instance, setting an option to present a line of comment in grey and italic style font does not seem to be available, or other case where your code examples appear in different colors to that in the standard VS 2022 code editor. I've searched through web pages, and it seems that there are various extensions that can be imported into VS 2022 that enable this level of syntax and semantic highlighting. I would particular like to be able just perhaps see the highlighting that has been used in the book. I wonder if you could advise on which extension to use, if that is permissible. I would think that others who may use your books may also like to see something about highlighting in code and explanations of how to achieve it either in future editions or as an addendum in the github pages for the book.