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 | — |
| punctuation.definition.arguments, punctuation.definition.dictionary, punctuation.definition.list, punctuation.definition.parameters, punctuation.definition.heading, punctuation.definition.function, punctuation.definition.function.braces, punctuation.section.function, punctuation.definition.method, punctuation.definition.array, punctuation.separator.key-value, punctuation.terminator.expression.php, entity.name.tag | #9D9999 | |
| text.html source.active4d | — | — |
| text.xml | #000000 | — |
| comment.line | #B729E3 | |
| comment.block | #B729E3 | — |
| string | #56DB3A | |
| string.interpolated variable | #66CCFF | bold |
| constant.numeric | #1299DA | — |
| constant.character, constant.other | — | — |
| constant.other.date, constant.other.time | #66CCFF | bold |
| constant.language | #A535AE | — |
| variable.other.local | #000000 | bold |
| variable | #000000 | |
| variable.other.table-field | #6988AE | — |
| keyword | #FF8400 | |
| keyword.operator | — | — |
| storage | #FF842E | — |
| entity.name.type | #21439C | — |
| entity.other.inherited-class | — | — |
| entity.name.function | #000000 | — |
| variable.parameter | — | — |
| meta.tag | #7A7A7A | — |
| entity.name.tag | #016CFF | — |
| entity.other.attribute-name | #963DFF | — |
| support.function | #000000 | — |
| support.constant | #B7734C | — |
| support.type, support.class | #000000 | — |
| support.variable | #A535AE | — |
| invalid | #FFFFFF | — |
| meta.diff | #FFFFFF | — |
| meta.diff.range | #FFFFFF | — |
| markup.deleted.diff | #000000 | — |
| markup.inserted.diff | #000000 | — |
| string.quoted.other.lt-gt.include | #ff00ff | italic |
| source.diff | #5E5E5E | — |
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}!`;
}