Notepad++ Classic Theme (LuaLS)
Publisher: AyniThemes in package: 1
Light theme inspired by Notepad++ with enhanced Lua support: semantic highlighting, cross-file alias detection, fold underlines, unused code differentiation
Light theme inspired by Notepad++ with enhanced Lua support: semantic highlighting, cross-file alias detection, fold underlines, unused code differentiation
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 | #008000 | |
| comment.documentation, comment.block.documentation, comment.block.javadoc, comment.line.double-slash.documentation, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc | #008080 | |
| comment.line.double-dash.documentation.lua | #008000 | |
| comment support, comment storage, comment storage.type, comment entity, comment variable, comment keyword.operator, comment support.function.library-blue.lua, comment support.function.library-purple.lua, comment support.other.namespace-blue.lua, comment support.other.namespace-purple.lua, comment entity.other.metafield.lua, comment support.function.lua, comment punctuation.definition.block.tag | #008000 | |
| keyword, constant.language, storage.modifier.extends, storage.type.namespace.directive, variable.language, keyword.operator.delete | #0000ff | bold |
| storage.modifier.import, storage.modifier.package | #000000 | — |
| constant.numeric | #ff8000 | — |
| string.quoted.double, string.quoted.single | #808080 | |
| string.quoted.double.xml, string.quoted.double.html | #8000ff | bold |
| string.template | #000080 | |
| punctuation.bracket, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.definition.parameters, punctuation.definition.begin, punctuation.definition.end, punctuation.definition.block, meta.brace.round, meta.brace.square, storage.type.function.arrow | #000080 | bold |
| keyword.operator | #000080 | |
| keyword.control.directive, meta.preprocessor | #804000 | |
| storage.modifier, keyword.other.package, storage.type | #8000FF | |
| storage.type.java, storage.type.generic.java, storage.type.annotation | #000000 | |
| entity.other.attribute-name, punctuation.separator.namespace | #FF0000 | |
| entity.name.tag, meta.tag | #0000FF | |
| meta.tag.preprocessor | #FF0000 | — |
| support.type.property-name.json | #8000ff | — |
| string.quoted.double.json | #800000 | — |
| constant.language.json | #18af8a | bold |
| constant.language.register | #8080ff | — |
| entity.other.attribute-name.pseudo-class | #ff8000 | bold |
| meta.property-value, keyword.other.unit.px, keyword.other.unit.percentage, constant.numeric.css | #000000 | bold |
| support.type.property-name.css | #8080c0 | bold |
| punctuation.separator.key-value.html | #000000 | |
| storage.type.function, storage.type.js | #0000ff | bold |
| markup.heading.markdown | #ff8000 | bold |
| markup.list.unnumbered.markdown | #000080 | italic |
| punctuation.definition.link.description, string.other.link.description.markdown | #8000ff | italic |
| constant.language.python, support.function.builtin.python | #880088 | bold |
| entity.name.function.python, support.function.magic.python | #ff00ff | |
| string.quoted.docstring.multi.python | #ff8000 | |
| constant.numeric.dec.python, constant.numeric.float.python | #ff0000 | |
| support.function.builtin.shell | #0000ff | bold |
| support.other.namespace-blue.lua, support.function.library-blue.lua, entity.other.metafield.lua, support.function.lua | #0080C0 | bold |
| support.function.library-purple.lua, support.other.namespace-purple.lua | #8000FF | bold |
| storage.type.annotation.lua | #008000 | — |
| keyword.operator.logical.lua | #0000FF | bold |
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}!`;
}