📄 faq
字号:
The latest development version can be obtained from http://cooledit.sourceforge.net/2.1 Where can I get Python? The Python home page is http://www.python.org/ There you will find a list of the many mirror sites around the world. Cooledit requires Python version 1.52.3 Does Cooledit have a mailing list? No. Correspondence to be addressed through the author. Please don't bug me with generic queries. There are newsgroups and local Linux User Groups for that.2.4 Does Cooledit have a world wide web home-page? http://cooledit.sourceforge.net/2.5 What other applications are called 'cooledit'? I havn't done a search myself, but users tell me that a program 'cooledit', for editing sound files, exists for one non-unix operating system. Since this application has a complete different function to Cooledit, this should cause no problem.3 COMMON PROBLEMS3.1 How do I get the commands from the 'Scripts' menu to work? If a script doesn't function properly, try run it stand-alone from a terminal to see what happens. Some of the scripts are not standard Unix commands and require installation of other free-ware packages. You may need to install ispell indent latex xdvi rxvt ghostview dvips (Look on you local sunsite or tsx mirror for these and other free-ware packages.) You can edit the script from the Script menu. Look at the script's text and try run the script (make appropriate substitutions for the filenames) from a terminal. This will usually indicate the problem.3.2 How do I get the man page browser to work? (As of version 3.3.3, the configure script automatically checks if man accepts '-a') Look in the file ~/cedit/.cooledit.ini Somewhere in the file is the line: option_man_cmdline = man -a %m You should try: Start cooledit from a terminal. See your man man-page (type man man at the terminal) to see if command-line options or environment variables are needed. See if the -a option is supported. Then see if the command-line needs changing.3.3 The man page browser displays the man page, but gives a warning. This can safely be ignored.3.4 In what ways does Cooledit behave differently to other X applications. Cooledit is more similar to applications from 'other' operating systems than to standard X applications. - Only two mouse buttons are supported. Mouse button 1 is recognised as the 'Left' button, while all other buttons are recognized as the 'Right' button. Under the Options menu you can however set the middle mouse button to paste. - Double clicking is synonymous with acknowledgement or pressing Enter. - The Tab key is always used to cycle between items in a dialog box. The arrow keys can also be used where they are not bound to some other function. Shift-Tab or back-tab is used to cycle backward. - Shift-arrow text highlighting works along with its well known keys: Control-Ins and Shift-Ins. In addition Alt/Meta-Ins brings up a cut and paste history which is very useful. - Dragging and dropping bits of text poses the problem of how to tell if the user wants to copy or to move the text being highlighted: use the Left mouse button to copy and the right mouse button to move ('move' = 'copy and then delete the original'). Dragging always works by highlighting the text with the mouse or cursor keys, and then Clicking (with the appropriate button) and dragging from within the highlighted region. - Clicking with button 2 to copy text from another application doesn't work --- instead you must use Shift-Insert. If text is highlighted in another application it will then be inserted at the cursor. Under the Options menu you can however set the middle mouse button to paste. Cooledit also does not discriminate between different kinds of data, so any data being copied to Cooledit will be accepted and inserted. - Copying of text to another application works as usual: highlight it with the mouse and click the middle mouse button in the window of the application. You can also highlight it with the arrow keys and press Control-Ins, and then click the middle mouse button in the window of the application. - Regular expression substring replaces are not like other Unix editors. See under `How do I do regular expression substring replaces?'.3.5 How do I get Emacs key-bindings, or bindings of other editors? The key learning dialog box is easy to use. Just go through the list, pressing the keys you would like. Double key combinations will not work however. Cooledit now contains a builtin Python interpretor which can be used to program double key combinations and effectively emulate any other editor. Anybody want to create a vi emulation?3.6 How do I get function keys F13 and up with my keyboard? Shift with a function key is analogous to adding 10 to the function key. i.e. Shift-F3 is F13 etc.3.7 How do I paste into an input widget like the file browser input line? Press Shift-Insert in the input line.3.8 How do I get my Alt/Meta key to work? On some machines, what the system thinks is an Alt/Meta key is actually one of the other hyper keys (on my Sun I have to use the key with the diamond on it). Try using one of these other keys as a Alt/Meta. The header file global.h contains the definition of the Alt/Meta key which you can change if you know what you are doing.3.9 Why do my other drag and drop applications not work with Cooledit? The freeware community is adopting a new drag and drop protocol called XDND. Cooledit now works with this protocol only. It supports version 0, 1 and 2 of the protocol, although I have not tested it with versions below 2. Just when I had it working with version 2 of this protocol, the XDND team adopted a new version 3, which I haven't been able to get working. When more XDND applications come out (Qt is said to be going XDND) then I will have a more thorough test-bed for version 3 of the protocol and will probably be able to get this working.3.10 Where can I get more info on drag and drop? http://www.cco.caltech.edu/~jafl/xdnd/3.11 How do I get mail to work? If mail doesn't work, your mail command probably doesn't support one of the command line options (see the mail dialog). You will have to create a mail script that ignores these options. The command is not currently configurable. Watch cooledit's stdout when sending mail to see mail error messages.3.12 How do I do regular expression substring replaces? Substrings are specified between ( and ) braces. Use \( to specify a literal (. %s can be used to insert a substring into the replacement string. Use %% for a literal %. Use the third field of the replacement dialog box to enter the order in which the substrings will be inserted, eg. 3,4,1,3 This is different to sed replacements which use \( \) for substrings and \1, \2 ... for replacements. Also see the man page for an example.3.13 Why does Cooledit die occasionally for no reason? If you have bad RAM or some kind of hardware problem it will be noticeable when you do kernel compiles. It will also be noticeable when you use Cooledit because of the very weird way Cooledit shuffles memory around. I have noticed that Cooledit can crash after being up for several weeks non stop. If anyone can send me a backtrace it would be appreciated. I am not sure if this is a Cooledit problem though. I also noticed crashes when using paragraph formatting in combination with auto-spellcheck. I fixed some potential problem code with regard to this, but can't be sure its gone.3.14 How can I print from Cooledit? (There may be a `Print...' menu item by the time you read this.) I have not built printing facilities into Cooledit because, when I do, I am going to use proper ascii-to-postscript conversion to do nice printing of plain text documents. At the moment, you can just print the way you normally do on UNIX (i.e. run lpr <filename> ). Also create a script to run this under the `Scripts' menu for convenience. Note that you can also drag and drop to the print icon of Coolicon.3.15 When i try to edit a python file with cooledit, i have these errors? > When i try to edit a python file with cooledit, i have these errors : > File "<string>", line 3, in ? > File "/usr/lib/python1.5/traceback.py", line 6, in ? > import types > File "/usr/lib/python1.5/types.py", line 18, in ? > BufferType = type(buffer('')) > NameError: buffer buffer was a new type introduced in python 1.5.2. It looks like you are running the python 1.5.1 binary against the 1.5.2 libraries. -Michel3.16 How can I enable NeXT look in Cooledit? When building cooledit use --enable-NeXT-look option of configure script.3.17 How do I change the background color? Edit your ~/.cedit/.cooledit.ini file and search for option_editor_bg_normal Colors are 1 through 26, but only 0 and 1 make any sense if you are using syntax highlighting.4 INTERNATIONAL CHARACTERS4.1 How do I enable international character support? International character support has changed as of version 3.10, and now properly uses the libc6 locale functionality. Hence you should set the LANG and LC_ALL environment variables to reflect your locale, and install the appropriate locale files. Most distributions will have these locale files installed already in say /usr/share/i18n/locales/ You can then type export LC_ALL=cs_CZ export LANG=cs_CZ cooledit A full list of locales on my system is: POSIX, cs_CZ, da_DK, de_AT, de_BE, de_CH, de_DE, de_LU, el_GR, en_AU, en_CA, en_DK, en_GB, en_IE, en_NZ, en_US, en_ZA, es_AR, es_BO, es_CL, es_CO, es_DO, es_EC, es_ES, es_GT, es_HN, es_MX, es_PA, es_PE, es_PY, es_SV, es_US, es_UY, es_VE, et_EE, eu_ES, fi_FI, fo_FO, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, ga_IE, he_IL, hr_HR, hu_HU, id_ID, in_ID, is_IS, it_CH, it_IT, iw_IL, ja_JP, kl_GL, lt_LT, lv_LV, nl_BE, nl_NL, no_NO, pl_PL, pt_BR, pt_PT, ro_RO, ru_RU, ru_SU, ru_UA, sk_SK, sl_SI, sr_YU, sv_FI, sv_SE, tr_TR, uk_UA, zh_CN. You should also choose an appropriate font for your locale if it requires other than the normal iso8859-1 character set, such as the koi8 fonts for Russian language support. For example, cooledit -font '-cronyx-fixed-medium-r-normal--20-200-75-75-c-100-koi8-r'4.2 How do I compose and insert international characters? Use Right-Control and the character that the international character most looks like. Then press a second character that would compose that character typographically. Eg. Ctrl-a o inserts a '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -