Please review the following changes (I'm a bit nervous about the Golden
Rules because of the fact that it is automatically displayed when a new tip
is created).

http://vim.wikia.com/wiki/Vim_Tips_Wiki:Golden_Rules
http://vim.wikia.com/wiki/Vim_Tips_Wiki:Code_guidelines

I did some quick tests on code blocks both short and long, to compare using
<pre>...</pre> versus indenting each line with a space.

One thing I found was that when you copy text out of the displayed code
block, there is an irritating trailing space on each line when you use the
"space prefix" method. But when I documented this in the new Code_guidelines
above, my example did NOT behave in that manner (there was no trailing
space).

For example, the following version of VimTip346 uses the "prefix each line
with a space" rule which our Golden Rules used to recommend:

http://vim.wikia.com/index.php?title=Wrap_text_in_HTML/XML_tags_after_prompt
ing_for_the_tag_name&oldid=8483

Three browsers I've tried get a trailing space on each line when copying
text from the script in the above, but they don't get a trailing space in a
short sample I've put in Code_guidelines.

I would appreciate hearing if anyone has some info on what conditions give a
trailing space in the copied text.

While trying to sort this out, I found some interesting stuff that may be
relevant in the future. There is a <source lang="xxx"> tag available on some
wiki sites (not Vim).

http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Programming_language
s#New_formatting_tag
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi

BTW I see that Wikipedia has a C++ category (ours is 'C plus plus'):

http://en.wikipedia.org/wiki/Category:C%2B%2B

John

_______________________________________________
Vim-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/vim-l

Reply via email to