Timeline for How can I prepare my code so that I can paste it formatted?
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 30, 2014 at 3:47 | answer | added | sqykly | timeline score: 1 | |
Jan 4, 2014 at 12:48 | comment | added | Liviu | Both the question and the answer mention the language, from what you are saying I understand that one can't indent HTML code with tabs. But you're welcome to add another answer, maybe it il gain more points so it will come first (in the page order). | |
Jan 4, 2014 at 9:21 | comment | added | sqykly | Accepted answer still looks like a mild to moderate hassle - I'm going to try to cook up a bookmarklet. If anybody wants to come up with a list of tokens that demand an indent/dedent in languages other than curly-bracket languages, HTML/XML, and Ruby, they should get it to me somehow. | |
Jan 4, 2014 at 2:25 | comment | added | Liviu | Neither I am and, to be honest, I don't understand why " '\t' is ignored for purposes of formatting". I just had a problem and I wanted a solution. | |
Jan 4, 2014 at 2:19 | comment | added | sqykly | Aaah I see. It seems I am not very altruistic. | |
Jan 4, 2014 at 2:10 | comment | added | Liviu | By tab I mean '\t'. Another (firstly unexpected) use is to format the code of others (and win precious points). | |
Jan 4, 2014 at 2:07 | comment | added | sqykly |
By "tabs" do you mean literally the ascii character 9 "\t" is ignored for purposes of formatting, or are four ascii 0x20 " " spaces ignored for purposes of formatting as well? I've been doing <pre><code> for a while and never noticed anything wrong, but I always replace tabs with spaces anyway.
|
|
Jan 3, 2014 at 14:08 | comment | added | Liviu | Yes, it seems that your awareness is missing the tabs. It's easy to realize it if your read the following answer. | |
Jan 3, 2014 at 8:44 | comment | added | sqykly |
Is there some disadvantage to wrapping unaltered copy-pasta in <pre> and <code> tags that I'm unaware of?
|
|
Jan 2, 2014 at 18:33 | history | made wiki | Post Made Community Wiki by JamalMod | ||
Jan 2, 2014 at 18:32 | history | edited | JamalMod | CC BY-SA 3.0 |
deleted 79 characters in body; edited tags; edited title
|
Jan 2, 2014 at 18:15 | vote | accept | Liviu | ||
Jan 2, 2014 at 18:05 | comment | added | Liviu | @jliv902 I have to do it for every piece of code between braces | |
Jan 2, 2014 at 17:30 | answer | added | rolfl | timeline score: 9 | |
Jan 2, 2014 at 17:28 | comment | added | jliv902 | Highlight your code and press ctrl+k. | |
Jan 2, 2014 at 17:08 | history | asked | Liviu | CC BY-SA 3.0 |