Gustavo Campos Gustavo Campos - 1 month ago 11
CSS Question

How can I show a code java or other Programming language in my site?

For example:

public class main(){
public static void main(String [] args)
System.out.println("HELP!");
}


I want show this in my website.

Answer

I think the easiest way is to use a JavaScript library, like Prism, or SyntaxHighlighter.