Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding language variants for code example #42

Merged
merged 6 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,16 @@ const CODE_LANGS = {
go: 'Go',
html: 'html',
java: 'Java',
javascript: 'JavaScript',
js: 'JavaScript',
json: 'JSON',
json5: 'JSON5',
python: 'Python',
scss: 'SCSS',
toml: 'TOML',
ts: 'TypeScript',
tsx: 'TSX',
typescript: 'TypeScript',
yaml: 'YAML',
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ The public key of the issuing account is linked on the ledger to the asset. Resp

In Horizon, assets are represented in a JSON object:

<CodeExample>

```json5
{
asset_code: "AstroDollar",
Expand All @@ -42,6 +44,8 @@ In Horizon, assets are represented in a JSON object:
}
```

</CodeExample>

In the Stellar SDKs, they’re represented with the asset class:

<CodeExample>
Expand Down
3 changes: 3 additions & 0 deletions src/components/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ const CODE_LANGS = {
go: 'Go',
html: 'html',
java: 'Java',
javascript: 'JavaScript',
js: 'JavaScript',
json: 'JSON',
json5: 'JSON5',
python: 'Python',
scss: 'SCSS',
toml: 'TOML',
ts: 'TypeScript',
tsx: 'TSX',
typescript: 'TypeScript',
yaml: 'YAML',
};

Expand Down