开发者

Copy code example from Zend Site

How would you copy the code from this example page

http://framework.zend.com/manual/en/learning.quickstart.cre开发者_如何学运维ate-layout.html

(Below the text "Now that we've initialized Zend_Layout and set the Doctype, let's create our site-wide layout:" )

A simple copy paste will also copy the line number or #. Any tricks ?


I hate these line numbers as well. The way I do it:

Copy the text to your favorite text editor (notepad won't do, Word for example would) and block-select using the ALT Key.

Let me give you an example with Notepad++. here I copied text from the said site with all line numbers included. Now I just hold the ALT button and select normally with my mouse (or using SHIFT+arrow keys). The result of me selecting only the code sans the line numbers you see in the following screenshot:

Copy code example from Zend Site

Now I could just copy this code to a new editor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜