Victorian ParadoxScript Tools
Publisher: KiwiStarsThemes in package: 1
Syntax highlighting features and code snippets for Victoria II modding.
Syntax highlighting features and code snippets for Victoria II modding.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #C5C8C6 | — |
| By uonick | — | — |
| comment_sign | #628547 | italic |
| string | #a3cf3e | italic |
| constant.boolean | #CE6700 | |
| constant.number | #D08442 | |
| broken.language.key | #FF0B00 | bold italic |
| variable | #7A9DB8 | — |
| variable.scope | #7A9DB8 | — |
| keyword.control | #a374a8 | italic |
| quoted.string.fallback | #a3cf3e | italic |
| flag.variable | #9cdcfe | |
| variable.which | #9cdcfe | |
| modifier | #c2c5ff | |
| modifier.which | #c2c5ff | |
| reform | #bad67e | |
| tag | #fe9c9c | bold |
| ideology.name | #8df09a | |
| ideology.tag | #8df09a | |
| issue.name | #bad67e | |
| government.name | #b8b233 | |
| trade_good | #cfae99 | |
| location | #de584e | bold |
| location_block | #de584e | bold |
| tech | #5e5eff | |
| pop_type.name | #d0429e | |
| casus_belli | #a557ad | |
| leader_traits | #cca578 | |
| national_value | #daa3ff | |
| building | #c4f0f5 | |
| building_type | #c4f0f5 | |
| culture | #fec59c | italic |
| religion | #cbd042 | italic |
| picture | #9ca3fe | |
| meta | — | |
| variable.other | #D0B344 | — |
| variable.language.description.scope | #7A9DB8 | |
| block_begin | #676867 | — |
| entity | #51E058 | — |
| entity.name | #14B84B | — |
| entity.other | #75F09E | — |
| keyword.operator | #A339EF | — |
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}!`;
}