loose identation whencopy paste from css file

Post here if your topic is about TopStyle but doesn't fit in another TopStyle forum.

Moderator: TopStyle Support

loose identation whencopy paste from css file

Postby lionelts » Sun Jul 29, 2012 2:38 pm

i copy from chrome this css block (A)
body {
font-family: Helvetica,Arial,sans-serif;
line-height: 1.3em;
margin: 0px 0px 0px 0px;
font-size: 12px;
color: #333;
}

when i paste this in the cursor mouse ( 2 tab space from the right ) I have only the first line that fit well
cursor locate after 2 tabs
<-2 tabs- -> (B)
body {
font-family: Helvetica,Arial,sans-serif;
line-height: 1.3em;
margin: 0px 0px 0px 0px;
font-size: 12px;
color: #333;
}

i ll think i ll have the above example name (C) instead (B)
curs-------> (C)
body {
font-family: Helvetica,Arial,sans-serif;
line-height: 1.3em;
margin: 0px 0px 0px 0px;
font-size: 12px;
color: #333;
}

but it was not the case even if i expect i can configure option to have (D) rendering
(D)
body {
font-family: Helvetica,Arial,sans-serif;
line-height: 1.3em;
margin: 0px 0px 0px 0px;
font-size: 12px;
color: #333;
}
I new user and test the feature topstyle 5 demo but ask mylself is there an option to configure rendering block ?
lionelts
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 61
Joined: Sun Jul 29, 2012 2:18 pm

Re: loose identation whencopy paste from css file

Postby lionelts » Mon Jul 30, 2012 6:11 pm

the textarea for write question in this forum take care of the white space beetween the left border and the beginning of text during edit the post but not when the post is rendering in the forum . My post has no value when i read it on this forum . I ll add an image to show you what i am expected .
lionelts
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 61
Joined: Sun Jul 29, 2012 2:18 pm

Re: loose identation whencopy paste from css file

Postby Albert Wiersch » Mon Jul 30, 2012 7:43 pm

lionelts wrote:the textarea for write question in this forum take care of the white space beetween the left border and the beginning of text during edit the post but not when the post is rendering in the forum . My post has no value when i read it on this forum . I ll add an image to show you what i am expected .


Please try putting the code in a code section using BBCode... it should preserve most or all the whitespace.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2433
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: loose indentation when copy paste from css file

Postby lionelts » Sat Aug 11, 2012 6:52 am

my post what about not loose indentation , or that topstyle take care on the way we want selectors and attribute/ values are formated when a do a copy /paste. In a way it is like the behaviour when we do a copy from html page browser and paste in frontpage ; Frontpage ask if we paste the raw source without formating or take care (copy) formating information ( html tag ) .

for topstyle ; when we do a copy paste from chrome and topstyle we see the space beetween body and first attribute change and when we paste when the location of the cursor is 2 tab from the left ; only the tag element body is 2 tab from the left ; not the attribute .

This wish is not important because it make sense if we use less/Sass syntax .In the case it ll be nice that the bracket position is the same space from left ( see 2 capture screen) .
Attachments
defaulttablocation.jpg
defaulttablocation.jpg (73.01 KiB) Viewed 2635 times
indentation-topstylecopypaste.jpg
indentation-topstylecopypaste.jpg (263.68 KiB) Viewed 2635 times
lionelts
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 61
Joined: Sun Jul 29, 2012 2:18 pm

Re: loose identation whencopy paste from css file

Postby TopStyle Support » Tue Aug 14, 2012 4:21 am

TopStyle will paste the exact contents of the clipboard, and won't do any extra formatting. If you would like to format your code, this is what Style Sweeper is for.
User avatar
TopStyle Support
Rank VI - Professional
Rank VI - Professional
 
Posts: 470
Joined: Sat Jun 13, 2009 12:38 pm


Return to General TopStyle

Who is online

Users browsing this forum: No registered users and 1 guest