Feat: Add syntax highlighting for a lot more languages
This commit is contained in:
53
samples/toml.toml
Normal file
53
samples/toml.toml
Normal file
@@ -0,0 +1,53 @@
|
||||
# ============================================================
|
||||
# Basic types
|
||||
# ============================================================
|
||||
|
||||
title = "Example TOML Configuration"
|
||||
enabled = true
|
||||
count = 42
|
||||
pi = 3.14159
|
||||
empty = ""
|
||||
|
||||
# ============================================================
|
||||
# Arrays
|
||||
# ============================================================
|
||||
fruits = ["apple", "banana", "cherry"]
|
||||
numbers = [1, 2, 3, 4, 5]
|
||||
|
||||
# Nested array
|
||||
matrix = [[1, 2], [3, 4]]
|
||||
|
||||
# ============================================================
|
||||
# Tables
|
||||
# ============================================================
|
||||
[owner]
|
||||
name = "Alice"
|
||||
dob = 1979-05-27T07:32:00Z
|
||||
|
||||
[database]
|
||||
server = "192.168.1.1"
|
||||
ports = [ 8001, 8001, 8002 ]
|
||||
connection_max = 5000
|
||||
enabled = true
|
||||
|
||||
[servers.alpha]
|
||||
ip = "10.0.0.1"
|
||||
dc = "east"
|
||||
|
||||
[servers.beta]
|
||||
ip = "10.0.0.2"
|
||||
dc = "west"
|
||||
|
||||
# ============================================================
|
||||
# Inline tables
|
||||
# ============================================================
|
||||
clients = { name = "Bob", age = 30, active = true }
|
||||
|
||||
# ============================================================
|
||||
# Multiline strings
|
||||
# ============================================================
|
||||
description = """
|
||||
This is a TOML file
|
||||
used for testing syntax highlighting.
|
||||
It supports multiple lines.
|
||||
"""
|
||||
Reference in New Issue
Block a user