vscode-yandex-wiki
Publisher: Ruslan NasonovThemes in package: 1
Syntax highlight for Yandex.Wiki https://wiki.yandex.ru
Syntax highlight for Yandex.Wiki https://wiki.yandex.ru
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| markup.heading | #0000FF | |
| markup.bold.yandex.wiki | #f92672 | bold |
| markup.italic.yandex.wiki | #e42e70 | italic |
| markup.underline.yandex.wiki | #e42e70 | underline |
| markup.yandex.wiki.question | #ff0000 | italic |
| markup.underline.link.yandex.wiki | #999 | |
| markup.underline.text.yandex.wiki | #e6db74ff | |
| markup.quote.yandex.wiki | #800000 | — |
| markup.yandex.wiki.remark.green | #00ff00 | — |
| markup.yandex.wiki.remark.red | #ff0000 | — |
| markup.yandex.wiki.remark.blue | #04b | — |
| markup.yandex.wiki.remark.gray | #808080 | — |
| markup.yandex.wiki.remark.yellow | #FFFF00 | — |
| markup.inline.raw.string, punctuation.definition.yandex.wiki | #fd971fff | — |
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}!`;
}