PSPad from entry to Mastery (PSPad Inside) [_ Application Tips

Source: Internet
Author: User
Tags character set diff ftp client

From:http://www.blog.edu.cn/user2/jashy/archives/2006/1264853.shtml

PSPad from entry to Mastery (PSPad Inside)
-------------------------------

What do you mean, pspad?
A good editor, publicity is generally very bad. The same is true of PSPad. Basically can not find the expression about the meaning of PSPad, also very few people ask. A Chinese netizen guesses, may be programmer ' S Pad. If so, this usage is possible only in non-English speaking countries, and only in non-English-speaking countries. Of course, both the Czech Republic and China are non-English-speaking countries.
The author was Fiala by the Czechs.

Czech is located in Central Europe, see http://news.xinhuanet.com/ziliao/2002-06/19/content_447185.htm for details.

Why Choose PSPad?
--------------
(translated from http://www.pspad.com/en/pspad.htm.)
Answer the following questions:
* Do you need multiple programming locales?
* Do you like code syntax highlights?
* Do you need a powerful editor for simple and functional operation?
* Are you looking for a plain text editor?
* Do you want to save money and have a professional function editor?
If you have more than one "yes" in your answer, that PSPad is for you.

The function of PSPad
-----------
(translated from http://www.pspad.com/en/pspad.htm.)
* Support Engineering
* Support to open multiple documents (MDI) at the same time
* Save session when exiting
* Support the FTP client, you can directly edit the remote Web page
* recording, saving, and loading of macros
* Find and replace
* File Comparison
* Templates (HTML templates, scripts, code templates ...) )
* Install packages with templates: HTML, PHP, Pascal, JScript, VBScript, MySQL, Ms-dos,perl,..
* Automatically set the syntax of the file type to highlight
* User-defined syntax highlights
* Automatic error correction
* Intelligent integrated IE and Mozilla HTML Preview (for HTML preview, need to install Mozillacontrol, Mozillacontrol Mozilla or Firefox packaged as ActiveX-translator)
* Fully functional Hex Editor
* Call different external programs based on different programming environments
* Print and print preview with color syntax highlighted
* Integrated Tidy Library, complete format, check HTML code, translate to CSS, XML, XHTML
* Integrated free top CSS editor TopStyle Lite
* Export Color-highlighted RTF, HTML, Tex format, to file or clipboard
* Block selection, label, line number, ...
* Reformat, compress HTML code, label character capitalization conversion
* Row sorting, you can sort from the specified column, you can tick off duplicate rows (similar to UNIX command Sort-u-translator)
* HTML ASCII table (e.g. <-->, >--> >-Translator)
* Code Browser, support Pacal, INI, HTML, XML, PHP, more in the future (now this generally supported more than that, such as TCL/TK, Shell, Java and other common programming languages have been supported-translators)
* Spell Check
* Internal Web browser, Apache server support
* Bracket Highlights Match
* ...

Features that are automatically completed
--------------
PSPad has some simple AutoComplete features, such as writing a bracket, which automatically makes the order not generally, which is common.

In addition to these, depending on the locale, we can also use code snippets (clip) functionality. The shortcut keys for displaying code snippets in the current context are CTRL + spaces. This is not very convenient, because the general Chinese and English switch is this key. You can turn this around (my settings are CTRL +.). With the menu Settings-> program Setting-> Key Map-> Show clip change.
Then open an HTML file, write Google1, Ctrl +., and see what happens. Open a Java file, write try, Ctrl +., and see what happens.

You can also define clip yourself. The shortcut key is CTRL + ALT + space. First select the code block, and then press the shortcut key. Just fill it out with the hint. The new defined clip requires a reboot of the PSPad. It does not seem to provide an interface to delete clip. However, you can open the corresponding file (such as HTML requires settings-> Edit Clip defination file-> html), delete the new added on the line. Usually in the end.

That's a good one. The other one is done automatically. This needs to be defined by itself. Settings-> Spell settings, fill in key and value point Add. Need to restart PSPad for entry into force. This works for all kinds of semantics. One of the applications I think of is defining copyright.

Character Set conversion
----------
ASCII <--> EBCDIC
If a zos or iseries person sends you a EBCDIC file and you don't have a chance to log in to Zos to run E2A, or login to iseries execute touch-c 819, then you can use PSPad to help you complete the transformation:
Tools-> User convertors-> EBCDIC to ASCII (IBM mainframe)

Bookmark
----
Bookmarks are very useful and therefore have to be mentioned. Set Bookmark: Ctrl + Shift + 0-9 digits. To bookmark: Ctrl + Shift + 0-9 digits.


One problem is that it can only have up to 10 bookmarks. More than 10 bookmarks may be useful, but for me, it's basically not memory which is which. Lost the meaning of the label.

New labels with the same name will overwrite the old ones.

Keys for jumping between bookmarks:
ALT + up Previous bookmark
ALT + down Next bookmark

You can also set the bookmark with ALT + right and cancel with ALT + left. The bookmark number is the lowest available value.

File comparisons
--------
The file comparison function is simple. There are two kinds of comparisons:
* Current file and another file comparison (Tools-> text differrences-> text Diff with this file ...)
* The contents of the Buffer and the contents of the disk compare (Tools-> text differrences-> text Diff with File Contents on disk)

Add a Comment
--------
Some people like to use the UE block editing function to add comments. The approximate steps are as follows:
* Use block edit mode.
* Select column No. 0 plus a number of lines.
* If it is a batch script, insert Rem, if it is a shell script, insert #, if it is Java, insert//.
From the pspad point of view, the UE is not cool. PSPad has a special way to add annotations: Ctrl + Shift + A

Select the block you want to comment on, and then press CTRL + Shift + A. If previously commented, this action removes the annotation. Otherwise, add. Comments are added according to the type of file you edited. Like Shell Plus # and so on.

Column edits
------
There are three modes of choice: row (the line seen by the eye), line (the actual row, if not collapsed row row=line), col (column selection). Column editors should refer to the col mode.
There are two ways to do mode switching:
* Edit-> Selection Type-> ...
* Use the icon of the status bar below the mouse point. The following figure lists the icons:


(To be continued)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.