Active4D Theme
Publisher: geraneThemes in package: 1
Active4D Theme ported from the Active4D TextMate Theme
Active4D Theme ported from the Active4D TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #3B3B3B | — |
| text.html source.active4d | — | — |
| text.xml | #000000 | — |
| comment.line | #AF82D4 | |
| comment.block | #AF82D4 | — |
| string | #666666 | |
| string.interpolated variable | #66CCFF | bold |
| constant.numeric | #A8017E | — |
| constant.character, constant.other | — | — |
| constant.other.date, constant.other.time | #66CCFF | bold |
| constant.language | #A535AE | — |
| variable.other.local | #6392FF | bold |
| variable | #0053FF | bold |
| variable.other.table-field | #6988AE | — |
| keyword | #006699 | bold |
| keyword.operator | — | — |
| storage | #FF5600 | — |
| entity.name.type | #21439C | — |
| entity.other.inherited-class | — | — |
| entity.name.function | #21439C | — |
| variable.parameter | — | — |
| meta.tag | #7A7A7A | — |
| entity.name.tag | #016CFF | — |
| entity.other.attribute-name | #963DFF | — |
| support.function | #45AE34 | bold |
| support.constant | #B7734C | — |
| support.type, support.class | #A535AE | — |
| support.variable | #A535AE | — |
| invalid | #FFFFFF | — |
| meta.diff | #FFFFFF | — |
| meta.diff.range | #FFFFFF | — |
| markup.deleted.diff | #000000 | — |
| markup.inserted.diff | #000000 | — |
| 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}!`;
}