Quake II Config Dark Theme
Publisher: Amok.MEnThemes in package: 1
Dark color theme for Quake 2 configuration files
Dark color theme for Quake 2 configuration files
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| support.function.q2config | #7ab6f7 | — |
| support.function.q2config.commands.actions | — | italic |
| support.function.q2config.commands.functions | — | bold |
| support.function.q2config.commands.operations | — | underline |
| support.function.q2config.commands.functions.q2pro | #048BA8 | — |
| support.function.q2config.commands.operations.q2pro | #048BA8 | — |
| support.function.q2config.commands.operations.openffa | #94d1d2 | — |
| support.function.q2config.commands.functions.openffa | #94d1d2 | — |
| support.function.q2config.commands.unsorted.opentdm | #61d0e7 | — |
| support.function.q2config.commands.unsorted.ctf | #9cb7bc | — |
| support.function.q2config.commands.unsorted.3zb2 | #537378 | — |
| support.function.q2config.commands.unsorted.yamagi-quake2 | #11cccf | — |
| support.function.q2config.commands.unsorted.q2enhanced, support.function.q2config.commands.actions.q2enhanced | #ff8001 | bold |
| variable.q2config.cvars | #ca6702 | — |
| variable.q2config.cvars.engine.q2pro | #ca6702 | bold |
| variable.q2config.cvars.game.q2pro | #ca6702 | italic |
| variable.q2config.cvars.engine.vanilla | #bb3e03 | — |
| variable.q2config.cvars.game.openffa | #bb9c03 | — |
| variable.q2config.cvars.game.opentdm | #b5bb03 | — |
| variable.q2config.cvars.game.yamagi-ctf | #b6a150 | — |
| variable.q2config.cvars.game.yamagi-3zb2 | #aea47e | — |
| variable.q2config.cvars.unsorted.q2enhanced | #fab46e | bold |
| keyword.control.q2config | #ff30a5 | — |
| keyword.control.q2config.specialkeys.q2pro | #c95d93 | — |
| constant.character.q2config.useableItems | #D49A6A | — |
| support.class.q2config.macros.q2pro | #ffc89e | — |
| string | #328625 | — |
| constant.numeric.q2config | #eec600 | — |
| constant.character.q2config | #ae2012 | — |
| comment | #666666 | italic |
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}!`;
}