Code::Blocks color theme
Publisher: Shayan Ahmed KhanThemes in package: 1
Default theme used in Code::Blocks IDE
Default theme used in Code::Blocks IDE
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, comment.block | #9898D9 | — |
| comment.block.documentation | #8080FF | bold |
| keyword.other.documentation.javadoc | #008080 | |
| comment.block.java | #a0a0a0 | |
| keyword.operator, storage.modifier.pointer, entity.name.function.operator, storage.modifier.array | #FF0000 | |
| keyword, keyword.operator.delete, storage | #0000A0 | bold |
| string.quoted.other, keyword.control.directive, punctuation.definition.directive, entity.name.function.preprocessor, meta.preprocessor, string.quoted.double.include | #00A000 | |
| storage.modifier.import | #000000 | |
| storage.type.java | #000000 | |
| entity.name.namespace, entity.name.scope-resolution | #00A000 | bold |
| constant.language, support.constant, variable.language | #0000a0 | bold |
| entity.name.function, entity.name.scope-resolution.function, support.function | #000000 | |
| constant.numeric | #F000F0 | |
| string.quoted.single.cpp | #E0A000 | |
| string.quoted.single, string.quoted.double, string.quoted.triple, string.interpolated | #0000FF | |
| punctuation.section, punctuation.separator, punctuation.terminator, punctuation.definition.begin, punctuation.definition.end, punctuation.definition.dictionary, punctuation.definition.array, punctuation.definition.parameters, punctuation.bracket | #FF0000 | |
| storage.type.generic.java | #000000 | |
| entity.name.tag | #800080 | bold |
| punctuation.definition.tag | #800080 | bold |
| entity.other.attribute-name.localname, entity.other.attribute-name.namespace, punctuation.separator.namespace | #000000 | bold |
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}!`;
}