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 |
|---|---|---|
| — | #D0D0FF | — |
| comment.block | #404080 | italic |
| string | #999999 | — |
| constant.language | #707090 | — |
| constant.numeric | #7090B0 | — |
| constant.numeric.integer.int32 | — | bold |
| constant.numeric.integer.int64 | — | italic |
| constant.numeric.integer.nativeint | — | bold italic |
| constant.numeric.floating-point.ocaml | — | underline |
| constant.character | #666666 | |
| constant.language.boolean | #8080A0 | — |
| constant.language | — | — |
| constant.other | — | — |
| variable.language, variable.other | #008080 | |
| keyword | #A080FF | — |
| keyword.operator | #A0A0FF | — |
| keyword.other.decorator | #D0D0FF | — |
| keyword.operator.infix.floating-point.ocaml | — | underline |
| keyword.operator.prefix.floating-point.ocaml | — | underline |
| keyword.other.directive | #C080C0 | |
| keyword.other.directive.line-number | #C080C0 | underline |
| keyword.control | #80A0FF | — |
| storage | #B0FFF0 | — |
| entity.name.type.variant | #60B0FF | — |
| storage.type.variant.polymorphic, entity.name.type.variant.polymorphic | #60B0FF | italic |
| entity.name.type.module | #B000B0 | — |
| entity.name.type.module-type.ocaml | #B000B0 | underline |
| support.other | #A00050 | — |
| entity.name.type.class | #70E080 | — |
| entity.name.type.class-type | #70E0A0 | |
| entity.other.inherited-class | — | — |
| entity.name.function | #50A0A0 | — |
| variable.parameter | #80B0B0 | — |
| entity.name.type.token | #3080A0 | |
| entity.name.type.token.reference | #3CB0D0 | |
| entity.name.function.non-terminal | #90E0E0 | — |
| entity.name.function.non-terminal.reference | #C0F0F0 | — |
| entity.name.tag | #009090 | — |
| entity.other.attribute-name | — | — |
| Library function | — | — |
| support.constant | — | — |
| support.type, support.class | — | — |
| support.other.variable | — | — |
| invalid.illegal | #400080 | bold |
| invalid.deprecated | #200020 | — |
| source.camlp4.embedded | — | — |
| source.camlp4.embedded.parser.ocaml | — | |
| punctuation | #805080 | — |
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}!`;
}