Page 1 of 1

소스보기를 다른 프로그램으로 하려면?

Posted: 2004 11 16 02:44 44
by ceviano
view page source 를 실행하였을 때 불여우 기본 프로그램 말고 다른 에디터를 사용하려면 어떻게 해야하는지 알고 싶습니다.

mozex확장을 써보세요...

Posted: 2004 11 16 11:15 14
by 파란사오정
firefox에서 소스에 대하여 외부편집기(external editor)를 사용하실려면...
mozex 확장을 사용해보세요.
그런데로 쓸만합니다.

http://mozex.mozdev.org/index.html

주의하실 점:
저같은 경우에는 아직 firefox1.0pr을 사용하고 있는데요...
설치후에 extenstions 창에 mozex가 나타나지 않거든요...
따라서, mozex 확장에 대한 preference도 설정할 수가 없는 상태입니다.
mozex에 대한 리플을 확인해보니, 아래와 같이 하면 된다는 군요...

https://update.mozilla.org/extensions/m ... e=comments
http://extensionroom.mozdev.org/more-info/mozex

아래의 내용을 프로필 폴더에 있는 prefs.js 파일에 추가하면 됩니다...
(물론, 폴더의 위치는 자신의 환경에 맞추세요...)

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", "");

위에 추가요 (mozex 삭제시)...

Posted: 2004 11 16 11:24 09
by 파란사오정
수동으로 삭제를 해야하는 경우에는...

mozex 확장은 mozex.jar 형태로
프로필폴더의 extenstions 폴더가 아닌 chrome 폴더에 설치가 됩니다.

따라서, 제거하실 경우에는 mozex.jar 파일과 함께...
아래의 RDF 파일 내용중에서 mozex 관련 태그들을 제거하시면 됩니다.

(주의: 파일삭제가 아닙니다...)

chrome/chrome.rdf
chrome/overlayinfo/browser/content/overlays.rdf
chrome/overlayinfo/communicator/content/overlays.rdf
chrome/overlayinfo/navigator/content/overlays.rdf

launchy 확장

Posted: 2004 11 16 13:42 22
by ceviano
먼저 답글 감사합니다.
mozex 확장은 말씀하신 것처럼 옵션 선택이 복잡하여 (dos 이름을 써야 한다던지 등등...) 다른것을 찾아보다가 launchy 라는 것을 찾았습니다. 비슷한 기능을 하는 것인데 이게 훨씬 쉽네요. 마우스 오른쪽 클릭에 launchy라는 메뉴가 새로 생기고 프로그램 선택이나 옵션 조절을 여기서 할 수 있습니다.

기본적인 몇가지 프로그램들은 미리 등록되어 있고, 그외 자기가 쓰는 프로그램을 chrome 폴더에 launchy.xml 파일을 만들어 등록하면 됩니다. chrome 폴더는 launchy 옵션창의 launchy.xml이라는 탭에서 확인할 수 있고요, 홈페이지(http://gemal.dk/mozilla/launchy.html)에 있는 내용을 인용하면,
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.
이렇게 만들면 된다는군요.



제경우 소스보기를 editplus를 등록해보았는데 잘되네요. 다른 쓸만한 기능들도 있어 쓸만 한 것 같습니다.

윗글 추가요...

Posted: 2004 11 16 13:43 59
by ceviano
launchy 옵션 조절은 다른 확장과 마찬가지로 extention 메뉴에서 선택할 수도 있네요.