Already a member?
Sign in
Welcome! This is a website that everyone can build together. It's easy!
Location: Style Guide
Discussion: Tabs and code indentation/formatting is lost
Watch
|
Anonymous |
Tabs and code indentation/formatting is lost
Mar 24 2008, 12:21 AM EDT On pasting C/C++ code on a wiki page, all indentation and formatting is lost. It becomes very frustating for other team members to read such a thing.. I donot wish to attach files all the time. Is there a way to preserve tab indents? 3 out of 4 found this valuable. Do you? |
|
jeremy_wetpaint |
RE: Tabs and code indentation/formatting is lost
Mar 24 2008, 7:31 PM EDT "On pasting C/C++ code on a wiki page, all indentation and formatting is lost. It becomes very frustating for other team members to read such a thing.. I donot wish to attach files all the time. Is there a way to preserve tab indents?"Maybe, but it depends where you are copying the content from. Wetpaint page content is rendered in HTML so if there is no code telling the page that there is an indent (or other formatting) then it will not show up on the page as such. Do you find this valuable? |
|
Anonymous |
RE: Tabs and code indentation/formatting is lost
Apr 11 2008, 1:20 PM EDT I've tried using a C++ to HTML converter, and pasting the converted HTML code.. but again the editor has a tendency of removing line breaks and treating the whole thing as a paragraph. The syntax highlighting and colors stay, though. Maybe the HTML given by my converter is not the correct syntax for Wetpaint. I'll have to try a couple of more others before I get it to work. Do you find this valuable? |
|
Anonymous |
RE: Tabs and code indentation/formatting is lost
Apr 11 2008, 1:22 PM EDT "pasting the converted HTML code.."I meant pasting the converted "HTML page displayed in IE" Do you find this valuable? |
