PuppetMaster PHP Color Theme
Publisher: PMThemes in package: 1
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 |
|---|---|---|
| — | #000000 | — |
| text | #000000 | — |
| constant.numeric | #0000FF | |
| comment, comment.block.xml, comment.line.double-slash.java punctuation.definition.comment.java | #9A9A9A | |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #000000 | bold |
| - punctuation.section | #000000 | — |
| variable, meta.function.arguments | #0080FF | bold |
| punctuation - string - variable - meta.function | #000000 | — |
| storage.type | #24BF96 | — |
| keyword - comment, storage.type.class, storage.type.interface, storage.modifier, constant.language | #009714 | — |
| support, storage, keyword.operator, storage.type.function | #000000 | — |
| variable.other.global | #0068AD | — |
| support.constant, constant.language.php, keyword.other.class.php, support.function.magic.php, constant.other.class.php, constant.other.php | #551D02 | bold |
| string, string keyword.operator | #E20000 | |
| string.quoted.double variable | #FF6200 | — |
| comment.block.documentation.phpdoc.php, comment.block.documentation.phpdoc.php punctuation.definition.comment.php | #FF9404 | — |
| invalid | #EE000B | bold |
| comment.block.documentation.phpdoc.php keyword.other.phpdoc.php | #0029CC | bold |
| source.php.embedded.block.html meta.function.php meta.function.arguments.php variable.other.php | — | underline |
| keyword.control.php, keyword.control.if.php, keyword.control.switch.php, meta.switch-statement.php, keyword.control.break.php, keyword.control.continue.php, keyword.control.else.php, keyword.control.elseif.php, keyword.other.php, storage.type.class.php, storage.modifier.extends.php, storage.modifier.implements.php, source.php.embedded.block.html support.function, keyword.other.namespace.php, keyword.other.use.php, support.function.var.php, support.function.php_pcre.php, support.function.string.php, support.function.construct.php, support.function.php, keyword.control.return.php, storage.type.function.php, keyword.other.new.php, support.function.construct.output.php, support.function.array.php, support.function.datetime.php, support.function.json.php, keyword.control.foreach.php, keyword.operator.logical.php, support.function.classobj.php, keyword.control.exception.php, support.function.file.php, keyword.control.exception.catch.php | #000080 | bold |
| entity.name.type.class.php, entity.other.inherited-class.php, support.class.implements.php, support.class.php, entity.name.function.php, support.class.builtin.php | #1E8000 | bold |
| variable.other.property.php, meta.function-call.object.php | #008000 | — |
| entity.name.tag, meta.selector.css | #3756BD | — |
| entity.other.attribute-name | #D12C23 | — |
| string.quoted.double.xml | #5D9629 | — |
| comment.block.css | #3C802C | — |
| string.quoted.double.css | #777777 | — |
| constant.other.color.rgb-value.css | #D18A10 | — |
| entity.other.attribute-name.class.css | #881181 | — |
| entity.other.attribute-name.id.css | #D12C23 | — |
| meta.property-name.css | #8C1C1C | — |
| storage.type.js | #AA2063 | — |
| keyword.operator.js | #0000FF | — |
| entity.name.function.js, support.class.js | #0000FF | bold |
| keyword.control.js | #C96916 | — |
| comment.line.double-slash.js, comment.block.documentation.js, punctuation.definition.comment.js | #008F9C | — |
| string.quoted.single.js, string.quoted.double.js | #A3A3A3 | — |
| keyword.other.class-fns.java, meta.definition.class.java storage.type.java, meta.definition.class.java storage.modifier.java, storage.modifier.java, source.java meta.definition.method.java storage.type.java, keyword.control.java, variable.language.java | #7F0056 | bold |
| comment.block.java, punctuation.definition.comment.java | #557F5F | — |
| comment.block.documentation.java, comment.block.documentation.java punctuation.definition.comment.java | #3756BD | — |
| keyword.other.documentation.javadoc.java | #3580BD | bold |
| string.quoted.double.java, string.quoted.single.java | #0000FF | — |
| constant.other.java | #00007D | bold italic |
| string.quoted.double.json | #D12C23 | — |
| support.type.property-name.json | #3756BD | — |
| constant.numeric.json | #0000FF | — |
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}!`;
}