Components/Code
fd-code · 2 examples from SAP's documentation · Back to the gallery
About
The code component helps with formating and styling code snippets. It differantiates the code lines from the normal text.
Use the code if: - You want to display a block of code. - You want to dispaly a line of code. Use the code if: - You want to display a block of code. - You want to dispaly a line of code.
Code Block
Code Block is a combination of multiple lines of code which can be displayed as a standalone element.
apiVersion: extensions.name/v1alpha1
kind: Class
metadata:
name: fundamental-extension-management
spec:
cdmUrl: {{ url.path.version1 }}://{{ .subdomain.domain }}{{ .Values.cdmPath }}
description: This Extension adds Extension Management to Project1
displayName: Extension Management
supportsDynamicCdmUrls: false
multipleInstallations: false
image: "data:image/png;base64,sfg87sg98f7gs9d8g7s9fgdfg"
installableScopes:
- Cluster
extensionConfig:
extensionManagerServiceUrl: https://extension-manager-name.{{ .Values.landscapeDomainName }}/graphql
InlineCode
Inline Code is used to hightlight a short snippet code inside a paragraph.
You can add inline code like here
FundamentalExtension and add mores
ClassName