Eclipse Color Theme
Publisher: Timo RöhlingThemes in package: 1
Syntax highlighting inspired by Eclipse
Syntax highlighting inspired by Eclipse
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 | #5F8FBF | |
| string | #2A00FF | |
| constant.character.escape, constant.other.placeholder | #7090FF | |
| constant.numeric, keyword.other.unit | #FF00AA | |
| keyword, storage.type.primitive, storage.type.class, storage.type.struct, storage.type.enum, storage.type.modifier, storage.type.namespace, storage.type.template, storage.type.function, storage.type.union, storage.type.js, storage.type.interface, storage.type.impl, storage.type.trait, storage.modifier, keyword.operator.new, keyword.operator.delete, keyword.operator.word, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.logical.python, constant.language, variable.language, keyword.declaration.function, keyword.declaration.class, keyword.declaration.struct, keyword.declaration.enum, keyword.declaration.union, keyword.declaration.trait, keyword.declaration.interface, keyword.declaration.impl, keyword.declaration.type | #800555 | bold |
| keyword.operator | #000000 | |
| entity.name.type, storage.type | #800555 | |
| entity.name.type.template | #336633 | bold |
| meta.kernel-call punctuation.section.kernel | #336633 | bold |
| meta.kernel-call entity.name.function | #336633 | |
| variable.other.member, variable.other.property | #333333 | |
| entity.name.function | #000000 | bold |
| meta.preprocessor | #808080 | |
| meta.preprocessor keyword.control.directive | #7F3F6A | bold |
| meta.preprocessor string.quoted | #9580FF | |
| support.function, support.type.python, support.type.posix-reserved | #642880 | bold |
| variable.parameter.function.language.special.self, variable.language.special.self, variable.parameter.function.language.special.cls, variable.language.special.cls | #000000 | italic |
| entity.name.function.decorator | #7D7D7D | italic |
| string.quoted.docstring | #406080 | |
| entity.name.tag | #800555 | bold |
| entity.other.attribute-name | #800555 | |
| meta.tag.preprocessor entity.name.tag, meta.tag.preprocessor entity.other.attribute-name, meta.tag.preprocessor string, meta.tag.preprocessor text, meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype entity.other.attribute-name, meta.tag.metadata.doctype string, meta.tag.metadata.doctype text | #5F8FBF | italic |
| entity.name.section, punctuation.definition.heading | #800555 | bold |
| markup.inline.raw, punctuation.definition.raw | #FF00AA | |
| punctuation.definition.list | #000000 | bold |
| markup.bold | #000000 | bold |
| markup.underline | #000000 | underline |
| markup.italic | #000000 | italic |
| keyword.codetag | #86A3BF | bold |
| support | #336633 |
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}!`;
}