Inline code highlighting utilities for <code> tags with dynamic theme support.
code-solid-primary over separate code-solid code-primary — smaller CSS output.<pre><code> for multi-line code blocks — <pre> preserves formatting, <code> marks semantics.Variable declaration: const x = 10;
Function call: getData()
File path: /usr/local/bin/node
Install: npm install beautify
Run npm install in your terminal to install dependencies.
Use git commit -m "message" to commit changes.
Config file is at ~/.config/beautify/config.json.
Removes background, padding and border-radius. Uses current text color.
code-plain — no background
Subtle semi-transparent border with background.
code-muted — light border
Solid border matching the theme color.
code-outline — solid border
Solid filled background with white text.
code-solid — dark background
primary — theme primary
secondary — theme secondary
tertiary — theme tertiary
success — success state
error — error state
info — info state
warning — warning state
caution — caution state
highlight — highlight emphasis
ink — neutral ink
Standalone compound variants — equivalent to variant + color in one class.
code-muted-primary
code-muted-success
code-muted-error
code-outline-primary
code-outline-success
code-outline-error
code-solid-primary
code-solid-success
code-solid-error
Multiple color formats are supported:
*-error, *-error-hover*-indigo-500*-[#ff0000]*-[red], *-[green]blue-200
blue-500
[#ff0000] — raw color value
code-solid-[#ff0000] — solid with raw color
ERROR TypeError: Cannot read property 'x' of undefined
WARN Deprecated: use new API instead
INFO Server started on port 3000
SUCCESS Build completed successfully!
Type: type User = { id: number; name: string }
Interface: interface Config { theme: string }
Generic: Array<T>
Regex: /^[a-zA-Z0-9]+$/
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(fibonacci(10)); // 55
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
print(fibonacci(10)) # 55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
.container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
const veryLongFunctionName = (param1, param2, param3, param4, param5, param6) => {
return param1 + param2 + param3 + param4 + param5 + param6;
};
[2026-06-13 17:00:00] INFO Starting server...
[2026-06-13 17:00:01] INFO Server listening on port 3000
[2026-06-13 17:00:02] WARN Deprecated configuration option detected
[2026-06-13 17:00:03] ERROR Failed to connect to database
[2026-06-13 17:00:04] INFO Retrying connection...
For pre block utilities, see demo-pre.html.