Skip to content

Commit

Permalink
Add syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Aug 6, 2024
1 parent bb93a17 commit 10b3ec0
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 414 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ repository = "https://github.com/Kijewski/play-rinja"
license = "MIT OR Apache-2.0"

[dependencies]
rinja_derive_standalone = { version = "0.3.0", git = "https://github.com/rinja-rs/rinja", rev = "51c62435350937d119fc36a51083459cfb4f00ee", features = ["humansize", "num-traits", "serde_json", "urlencode"] }
rinja_derive_standalone = { version = "0.3.0", git = "https://github.com/rinja-rs/rinja", branch = "master", features = ["humansize", "num-traits", "serde_json", "urlencode"] }

once_cell = "1.19.0"
prettyplease = "0.2.20"
proc-macro2 = { version = "1.0.86", default-features = false }
syn = { version = "2.0.72", default-features = false, features = ["full", "parsing", "printing"] }
web-sys = { version = "0.3.69", features = ["WorkerGlobalScope", "HtmlTextAreaElement", "Performance"] }
syntect = { version = "5.2.0", default-features = false, features = ["default-syntaxes", "default-themes", "parsing", "regex-fancy"] }
web-sys = { version = "0.3.69", features = ["HtmlPreElement", "HtmlTextAreaElement", "Performance"] }
yew = { version = "0.21.0", features = ["csr"] }

[profile.release]
opt-level = 3
opt-level = "z"
lto = "fat"
codegen-units = 1
debug = 0
Expand Down
4 changes: 4 additions & 0 deletions Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ sass = "1.69.5"

[build]
public_url = "./"

[clean]
dist = "dist"
cargo = true
23 changes: 1 addition & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,7 @@

<link data-trunk rel="rust" />
<link data-trunk rel="css" href="modern-normalize.css" />
<style>
html {
font-size: 62.5%;
}
body {
padding: 0.5em 1em;
background-color: #eee;
color: #111;
color-scheme: light only;
font-family: monospace;
font-size: 1.6rem;
line-height: 140%;
}
textarea {
background-color: #fff;
color: #000;
font-family: monospace;
font-size: 1.6rem;
line-height: 140%;
width: 100%;
}
</style>
<link data-trunk rel="scss" href="style.scss" />
</head>
<body></body>
</html>
274 changes: 1 addition & 273 deletions modern-normalize.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 10b3ec0

Please sign in to comment.