what I'd like to create for myself are custom tags for rendering code snippet, which will also compile&run it and provide result. Can you provide any hint or reference of required reading? I wasn't able to find one.
for (index <- 1 to 4) println
expected result is properly formatted scala code, just like I'd use [source,scala] followed by block as: