tags excluding the current indentation level of the tag in the document?-一整个雨季的回答
tag in the document?-一整个雨季的回答
tags excluding the current indentation level of the tag in the document?
tag in the document?
I\'m trying to display my code on a website but I\'m having problems preserving the whitespace indentation correctly.
For instance given the following snippet:
This is cumbersome, but it works if code folding is important to you:
def some_funtion return 'Hello, World!' end
def some_funtion
return 'Hello, World!'
end
In your css,
pre { margin:0 }
In vim, writing your code normally and then executing:
:s/\t\t\([^\n]\+\)/\1<\/pre>/
\1<\/pre>/
for each line would work.