how to dispaly long commands
-
I read the short thread https://en.forums.wordpress.com/topic.php?id=25617&replies=4#post-184841
unfortunately it’s closed though I’m not sure the issue is resolved.I use http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/ when I post HTML or CSS snippets and I use the the code or the pre element to display Linux commands;
However depending on the size of fonts chosen by Firefox users for instance (sorry I have no experience of IE), long commands aren’t fully displayed. Using the pre element you can start a new line, and thus cut your command in two lines but then you have to mention that the comand is just one line, which may be puzzling for newbies or uneasy for quick copy-paste to the terminal.
One problem withe the “how-do-i-post-source-code” is that it doesn’t validate because according to W”C, WP short cut produces HTML code while the DOC Type is XHTML.
Another problem is what code is a Linux command:it isn’t HTML, CSS, etc. perhaps it doesn’t matter, if the code name is just a CSS element, not a semantic thing.
Sorry to sound very tedious and finicky but WP is great and small improvement in its XHTML can’t do much harm.
- The topic ‘how to dispaly long commands’ is closed to new replies.