MultiTheme
Publisher: Arturo ArevaloThemes in package: 336
A collection of themes ported from TextMate
A collection of themes ported from TextMate
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment | #666666 | |
| constant | #7f9b00 | |
| entity | #ff3300 | bold |
| keyword | #b59100 | bold |
| storage | #b59100 | bold |
| string, meta.verbatim | #307c16 | |
| support | #3a67ae | |
| variable | — | |
| invalid.deprecated | #ce3e30 | italic |
| invalid.illegal | #111111 | — |
| entity.other.inherited-class | #ff3300 | italic |
| string constant.other.placeholder | #ff3300 | |
| meta.function-call.py | #2a3a55 | |
| meta.tag, meta.tag entity | #3a5276 | — |
| entity.name.section | #111111 | |
| keyword.type.variant | #272f3e | — |
| source.ocaml keyword.operator.symbol | #111111 | — |
| source.ocaml keyword.operator.symbol.infix | #3a67ae | |
| source.ocaml keyword.operator.symbol.prefix | #3a67ae | |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml constant.numeric.floating-point | — | underline |
| text.tex.latex meta.function.environment | — | — |
| text.tex.latex meta.function.environment meta.function.environment | — | — |
| text.tex.latex support.function | #b59100 | bold |
| source.plist string.unquoted, source.plist keyword.operator | #111111 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}