YAML Examples
YAML syntax highlighting
YAML Syntax Highlighting
# Application Configuration
application:
name: MyApp
version: 1.0.0
debug: true
database:
host: localhost
port: 5432
credentials:
username: admin
password: "secret123"
servers:
- name: web-01
ip: 192.168.1.10
role: frontend
- name: web-02
ip: 192.168.1.11
role: frontend
- name: db-01
ip: 192.168.1.20
role: database
features:
authentication: enabled
caching: disabled
logging:
level: info
format: json
# Multi-line strings
description: |
This is a multi-line
description that spans
multiple lines.
folded: >
This text will be
folded into a single
line.