How Can I Copy & Paste The Comments As Same Format - Xcode - xcode4.5

I would like to copy and paste my class description comments (which is aligned using keyboard tab button) to another class.
I have used cmd+c and cmd+v buttons to do the above.However the comment/text alignment seems to be different format.
Original comments copied
Comments shown after pasted
So how can I copy and paste the comments as same format in Xcode
Any help on this is appreciated.
Thanks.

Edit -> Paste and Preserve Formatting

Related

Drag and drop text in Brackets

How can I enable the ability to drag-and-drop text in Adobe Brackets?
For example, when I select text and drag it in Sublime Text, it moves. How can I do the same in Bracket?
You're looking for the dragDropText setting.
To enable it, insert this line into your preferences file:
"dragDropText": true
(Note: You may need to reload Brackets for the changes to take effect)
VoilĂ ! Drag-and-drop that text! :)
Happy coding!
1- go to menu-->Debug
2- go to "open Preferences File"
3- go to the file : "brackets.json"
4- copy and pase these codes on last line and dont forget separate last code with this by ",":
"dragDropText": true
*HOPE TO HELP :))

Existing code has no line break

I am trying to modify a CSS file using Sublime Text 2, however, all the code is presented in one linebreaks with no line break whatsoever.
What can I do to change that into readable code?
Try using Code Beautifier. You input the code and it formats it for you. There are many other sites like this one so check around and see which one you like best.
If you want to use a Sublime Text plugin, try CSS Format by mutian.
EDIT: As said by Imran Bughio, CSS Beautify is another site like Code Beautifier.
EDIT 2: As noted by Beginner, CSSLisible is another option.
Go to this site CSSLISIBLE. paste your css code and click Clean this code button..

ipython notebook anchor link to refer a cell directly from outside

I am writing documentation for a notebook-based framework. When referring to important cells in a demo-notebook, can I point to a particular cell by using some sort of anchor?
For example if I have the demo-notebook at 127.0.0.1/mydemo, is it possible to refer to the input cell In[10] by some anchor tag like 127.0.0.1/mydemo#In10
Creating internal links within Markdown works quite well in practice for me. For example, you can make a table of contents by making a list in a markdown cell at the top of the page.
*[jump to code cell 2](#cell2)
*[jump to code cell 3](#cell3)
*[jump to code cell 4](#cell4)
Then you just insert a markdown cell right above the code cell you want to link to (say code cell 2). Just add one line of code:
<a id="cell2"></a>
See this tutorial for more explanation: http://nbviewer.ipython.org/github/rasbt/python_reference/blob/master/tutorials/table_of_contents_ipython.ipynb
I like to use headers to organize my notebooks, such as
#My title
in a markdown cell. In another location, I can then refer to this cell using
[Link to my title](#My-title)
in markdown (looks like you should replace spaces with hyphens).
I got this from a more complete answer here.
Not on stable, and only on Header(1-6) cell on master. Just click on the header cell and it will put the right anchor in the url bar, wich is usually #header_title_sanitized
Using the prompt number is not a good idea as it might change. It will be supported on nbviewer as well, we are working on it.

vi editor paste text from some page into vi editor page

I'm trying to paste text into heroku vi editor, like the code snippet from facebook tutorial, but I cant seem to figure it out.
I have tried
:"*P
:"*p
:p
etc, i'm using windows 7 for all it matters? any ideas
open the vi editor, you want to start with an empty, unnamed document
type ':set noai nosm' (without the single-quotes) (you need the ':' char)
press the enter key
press the letter i (for insert)
now use the appropriate mouse click to paste your text
type ':wq myFileName.php' (no single-quotes)
# this 'w'rites the filename and 'q'uits the editor
Now you should have a file with the code you wanted.
Incidentally, this doesn't really qualify as a programming question, in the future, use the related site, superuser.com to post this sort of question.
I hope this helps.
at first You have to copy the text to the buffer pressing yy on the line you want to copy, after that You will be able to paste it anywhere with p .
Hope it helps :)
Just select and copy normally from the webpage ..And right click at the cursor position you want to paste at in your Unix terminal..(i.e vi editor) .
It'll get pasted.

Wordpress Plug-In for Documents Library

I need a very easy to use plug-in which will help me have this effect in Wordpress. Please note that simple page editing is not working -- add text and set hyperlink (this is not working). We need PDF & PPT files for now, however if there is a solution with wider variety of file type it would be great.
Please see the below reference hyperlink for more visual explanation - TAB "Manuals" (I do not need the tabs, justthe list):-
http://support.lexmark.com/index?segment=SUPPORT&userlocale=EN_US&locale=en&productCode=LEXMARK_C524&page=product&frompage=null#5
You can try http://wordpress.org/extend/plugins/document-library/

Resources