Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.0k views
in Q2A Core by
Is there any plugin to write code in questions? To be like with a darker background or something like that.
Q2A version: latest

1 Answer

+2 votes
by
 
Best answer

You can use the little quote icon in the editor. It's not quite as nice as the Stack Overflow style, but it works just fine for us.

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}

by
I'm having and issue with CSS code, When I insert CSS on a blockquote in a question and click on the button to ask the question, it's taking long time and then gives me an error page, it's not possible to insert CSS on question for me.
The only way I discovered to work around this was by commenting the CSS code

/* #randomCss{background:#fff;} .hello{background:#000;} */

are you guys all having this same problem?
by
I haven't tried, but I imagine this may be a security feature to prevent users from inserting code into a site that could affect it. I believe you can use custom HTML blocks for formatting, so it may be restricted to only allow specific code blocks. This is purely speculation, but definitely an interesting problem.
by
After a few tests, I realized that it's only for this specific tag: overflow: hidden;
by
But here it seems it doesn't affect nothing
...