소스보기를 다른 프로그램으로 하려면?
Posted: 2004 11 16 02:44 44
view page source 를 실행하였을 때 불여우 기본 프로그램 말고 다른 에디터를 사용하려면 어떻게 해야하는지 알고 싶습니다.
Code: Select all
user_pref("mozex.command.aim", "");
user_pref("mozex.command.download", "");
user_pref("mozex.command.ed2k", "");
user_pref("mozex.command.ftp", "");
user_pref("mozex.command.irc", "");
user_pref("mozex.command.mailer", "");
user_pref("mozex.command.news", "");
user_pref("mozex.command.source", "c:\\myprog~1\\vim\\vim61\\gvim.exe %t");
user_pref("mozex.command.telnet", "");
user_pref("mozex.command.textarea", "c:\\myprog~1\\vim\\vim61\\gvim.exe %t");
user_pref("mozex.general.tmpdir", "c:\\windows\\temp");
user_pref("mozex.intercept.ftp", false);
user_pref("mozex.intercept.irc", false);
user_pref("mozex.intercept.mailto", false);
user_pref("mozex.intercept.news", false);
user_pref("mozex.universal.command", "");
user_pref("mozex.universal.schemes", "");
이렇게 만들면 된다는군요.Launchy is now (from version 2.5.0 and up) able to use a XML file to add custom applications. So you can add your own applications to Launchy's context menu. At startup Launchy will look for a file called launchy.xml in the chrome directory in your profile. Get help in finding the path of your Mozilla profile.
You have to create the launchy.xml file yourself. The content of the launchy.xml should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://launchy.mozdev.org/configurations">
<application>
<label>Mozilla Composer</label>
<type>7</type>
<command>c:\program files\mozilla.org\nightly\mozilla\mozilla.exe</command>
<arguments>-editor</arguments>
</application>
<application>
<label>WordPad</label>
<type>7</type>
<command>%ProgramFiles%\accessories\wordpad.exe</command>
<arguments></arguments>
</application>
<application>
<label>Lynx</label>
<type>1</type>
<command>/usr/bin/lynx</command>
<arguments></arguments>
</application>
<application>
<label>Kget</label>
<type>5</type>
<command>/usr/bin/kget</command>
<arguments></arguments>
</application>
</configurations>
label: The name of the application required
command: The full path to the executable for the application required
arguments: The arguments for the application optional
type: The type of application required. The following types are supported:
1. Browsers (fx Mozilla)
2. Mail clients (fx Mozilla Thunderbird)
3. Media clients (fx Windows Media Player)
4. FTP clients (fx WS_FTP)
5. Download Managers (fx FlashGet)
6. File Explorers (fx Windows Explorer)
7. Editors (fx UltraEdit)
8. View Viewers (fx XnView)
You can use both %ProgramFiles% and %SystemRoot% and %HOMEDRIVE% and %HOMEPATH% in the the command and arguments and they are substitutes with their appropriated values.