The "syntax=java" tag is a great idea, in theory. But in practice, not so much - for two reasons: The muddy-coloured text on a black background does not contrast well, and is much less readable than dark text on a light background. If the background must be black, can we at least have some brighter text? (I appreciate this is subjective, but light text on a dark background = bad, IMHO) More infuriatingly, any attempt to edit a post which contains "syntax=java" code destroys the indentation of the code, making it pretty much useless for any non-trivial code examples. This doesn't happen with the "php" or "code" tags. Any chance the forum admins could take the above under consideration?
It's actually easier on the eyes to read white text on a black background instead of black text on white background.
I just hit the code button and paste everything, then erase "code" from the brackets. Seems to preserve indentation. Here it is just typing: Code:java PymlConfiguration config = new PymlConfiguration(new File("plugins/MCListID/" + File.separator + "history.yml"));try{config.load(); And here it is the other way: Code:java PymlConfiguration config = new PymlConfiguration(new File("plugins/MCListID/" + File.separator + "history.yml")); try{ config.load();
Well, as I said: "I appreciate this is subjective". Probably also age-related, and I know that I'm, well.. one of the older posters around here E.g. http://www.456bereastreet.com/archive/200608/light_text_on_dark_background_vs_readability/ Of course, the ideal would be to make this easy for users to configure via style sheets. In any case, I could put up with the colour scheme. The broken indenting behaviour is a bigger problem.
Testing: Code:java public static void main(String[] args) {System.out.println("Just a test");for (int i = 0; i < 10; i++) {System.out.println(i);}} Well that was nicely indented when I posted it, but having edited it, the indentation is gone. Could be a browser-related problem; I'm using Chrome.
Well yeah editing makes it go jonkers. There's no question it's really a broken system; I was just offering my way of using it.
This is an issue that would need to be fixed on the Xenforo side. It would require us to change core Xenforo files, which makes maintaining and updating our forums a more complicated process than needed.
I was just stating a fact. Not saying I like the current color scheme. It is indeed hard to read. Less light going to your eyes is better. (Books are different as it's indirect light.) And that link you provided is also just an opinion, that person gets headaches reading white on black. I did a search myself and yes there is a lot of people complaining about it and they have a point, in their bad example websites.
Sometimes, when I put it in my long plugin threads, even if I use [/syntax], the code box thing goes on forever. Like... for example, here's an example of a plugin thread: BLAHAHAHAHA Version: 1.0 Code:java Trollolololololol Credits: ShootToMaim But the problem is, sometimes the syntax box will also include the Credits: and the ShootToMaim part.
I'm using this CSS code to make them look a lot nicer: Code: pre.java { background: none; border: none; } pre.java ol { margin: 0; } pre.java ol li.li1 { color: #666; background: none; } pre.java ol li div { color: #000; } pre.java ol li div span.kw1 { color: #00F; } pre.java ol li div span.kw3 { color: #000; } pre.java ol li div span.me1 { color: #00A; } pre.java ol li div span.br0 { color: #000; } pre.java ol li div span.st0 { color: #E90; } pre.java ol li div span.co1 { color: #999; } I insert it using the Chrom extension Stylebot, but I'm sure there's a Firefox equivalent for those of you who use it.
GitHub theme anyone? Code: pre.java { background: #ECECEC; border: none; } pre.java ol { margin: 0; } pre.java ol li.li1 { color: #AAA; background: #FFF; padding-left: 10px; } pre.java ol li div { color: #333; } pre.java ol li div span.kw1 { color: #333; font-weight: bold; } pre.java ol li div span.kw3 { color: #333; } pre.java ol li div span.kw4 { color: #458; font-weight: bold; } pre.java ol li div span.st0 { color: #D14; } pre.java ol li div span.me1, span.nu0 { color: teal; } pre.java ol li div span.br0 { color: #333; }