The Substrate StackExchange is primarily a developer community which involves lots of code, primarily Rust and JavaScript.
It seems the syntax highlighting on the Rust programming language is basically non-existent.
See this example from this answer:
/// Use this filter to block users from calling any functions in the Balances pallet.
pub struct DontAllowBalances;
impl Contains<Call> for DontAllowBalances {
fn contains(c: &Call) -> bool {
// This will match against any call from the Balances pallet.
!matches!(c, Call::Balances(..)
}
}
Additionally, we do not seem to have support to write and execute simple JavaScript samples like StackOverflow has:
console.log("Hello, Stack Snippets!");
Can we enable these fuctionalities on this site?
<pre><code></code></pre>
(no highlight.js classes) regardless of if a language is specified or even when using the fulllang-
specifier notation.