When in doubt, see Text formatting guidelines. For example, NuGet package names should be treated asĬode. Not always obvious what qualifies as code. Code elementsĪ "code element" is a programming language keyword, class name, property name, and so forth. :::code source="PowerShell.ps1" interactive="cloudshell-powershell":::įor more information, see Interactive code snippets later in this article.īesides explaining the Markdown for each of these ways to include code, the article provides some :::code language="csharp" source="~/samples-durable-functions/samples/csx/shared/Location.csx" highlight="2,5":::įor more information, see Out-of-repo snippet references later in this article.Ĭode blocks that let the user execute code in the browser. :::code language="csharp" source="intro/samples/cu/Controllers/StudentsController.cs" range="2-24,26":::įor more information, see In-repo snippet references later in this article.Ĭode blocks by reference to a code file in another repository. For more information, see Code blocks later in this article.Ĭode blocks by reference to a code file in the local repository. Use inline code blocks when it's impractical to display code by reference to a code file. For more information, see Code elements later in this article.Ĭode blocks in the article Markdown file. Code format may also be used for properties, methods, classes, and language keywords. Use code format when referring to named parameters and variables in a nearby code block in your text. Individual elements (words) within a line. There are several ways other than screenshots to include code in an article published on Microsoft Learn:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |