周泉

宁可危险,有些疯癫,没有遮掩。

导航

IE8下修改默认的查看源文件编辑器

默认的查看源文件编辑器已不再是在Internet Explorer 8的记事本,无论是在其中内置IE8的,在默认情况下,在Windows 7或IE 8是下载并最终在Windows Vista或Windows XP的用户安装。 In IE8, when user clicks on “View Source” command from “Page” menu or in right click context menu, the HTML source code of the web page is opened in a built-in viewer, instead of Notepad, which is used in IE7 or older version of IE.在IE8时,“查看源代码”中的“页面”菜单或右键单击上下文菜单命令用户点击的HTML源代码的网页中打开一个内置的浏览器,而不是记事本,这在IE7中使用或以上版本的IE浏览器。

The Internet Explorer 8 built-in viewer is included as part of the Developer Tools in IE8.在Internet Explorer 8内建的观众是包括在开发工具的一部分在IE8。 The built-in web page source code viewer has many features and functions, such as allowing user to save as HTML source or Formatted HTML View, dynamically refresh the displayed source code window, increase or decrease text size, print, copy and paste, and etc. However, some users have preferred to use Notepad or other text editor instead to replace the built-in viewer, which provide more flexibility, such as direct editing of the HTML source code.内置在网页源代码查看器,如允许用户为HTML格式的HTML源或查看,保存动态刷新显示源代码窗口,增加或减少文本的大小,印刷,复制和粘贴,以及许多特性和功能,等,但有些用户喜欢使用记事本或其他文本编辑器,而不是取代内置的浏览器,它提供更大的灵活性,例如在HTML源代码直接编辑。

IE8 does provide an easy way to change the default HTML source code viewer. IE8的确实提供了一种简单的方法来改变默认的HTML源代码查看器。 In fact, there are many ways to change the associated default HTML View Source editor or viewer .事实上,有很多方法可以更改相关的默认的HTML编辑器或查看器查看源文件 Just pick one of the preferred methods listed below.只需选择下面列出的首选方法之一。

Method 1: Change Default View Source Editor or HTML Viewer with IE8 Developer Tools 方法1:更改默认的查看源代码编辑器或网页浏览器与IE8的开发工具

  1. Launch Internet Explorer 8 . 启动 Internet Explorer 8。
  2. Click on Tools on menu bar, and select Developer Tools in the pull down menu.点击工具栏上的菜单,并选择下拉菜单在下拉开发工具

    Alternatively, press F12 to start Developer Tools.或者, F12开始开发工具。

  3. Click on File on menu bar, and select Customize Internet Explorer View Source点击菜单栏上的文件 ,并选择自定义的Internet Explorer查看源文件
  4. The following three options are available:下面的三个选项:

    Default Viewer默认浏览器
    Notepad记事本
    Other…其他...


    Default Viewer will use the default IE8 built-in viewer, Notepad will display HTML source code on Windows built-in Notepad program.默认浏览器将使用默认的IE8的观众中内置的记事本将显示内置的Windows HTML源代码在记事本程序。 Selecting Other will prompt a dialog box to select the executable or program file of the preferred text editor.选择其他会提示一个对话框,选择首选的文本编辑器可执行文件或程序文件。

Method 2: Manually Edit The Registry Key 方法2:手动编辑注册表项

  1. Click Start -> Run , then type RegEdit .点击开始 - >“ 运行 ,然后键入 regedit
  2. Navigate to the following registry key:导航到以下注册表项:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer HKEY_LOCAL_MACHINE \软件\微软\的Internet Explorer

  3. Create a sub-key named as View Source Editor under “Internet Explorer”.创建一个子项命名为“Internet Explorer”的源代码编辑器为视野下。
  4. Create a sub-key named as Editor Name under “View Source Editor”.创建一个子项名为源代码编辑器“的编者姓名下”观。 For example, the complete registry key name is now:例如,完整的注册表项名称现在是:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name HKEY_LOCAL_MACHINE \软件\微软\的Internet Explorer \查看源代码编辑器\编者姓名

  5. Change Default value of “Editor Name” to Notepad.exe (to choose Notepad as default HTML viewer) or another other full path to a text editor's EXE file as its value data (for Notepad++, Notepad2 or etc).更改默认值“编辑名称”到Notepad.exe(记事本选择作为默认HTML查看器)或其他其他的完整路径到一个文本编辑器的EXE文件或等价值作为其Notepad2数据(记事本+ +)。


  6. Exit Registry Editor.退出注册表编辑器。

Method 3: Download Registry Fix 方法3:下载注册表修复

For user who intends to set Notepad as the default View Source editor in IE, just download the following registry registration file:对于用户谁有意设置为默认的记事本在IE中查看源代码编辑器中,只需下载下面的注册表注册文件:

viewsource_ie.zip viewsource_ie.zip

Run and execute viewsource_notepad.reg to set Notepad as the default HTML source code viewer in IE8.运行和执行viewsource_notepad.reg记事本设置为默认的HTML源代码在IE8浏览器。 To revert and restore the original setting so that built-in viewer of IE8 as default View Source editor, run and execute viewsource_default.reg.要恢复和恢复原来的设置,使内置的默认查看源代码编辑器IE8的浏览器,运行和执行viewsource_default.reg。 Note that registry registration files in the ZIP archive will both work in IE6 or IE7 too, but will both set Notepad as the default View Source editor.请注意,在登记处登记的ZIP归档文件将在IE6或IE7过,但都将设置为默认的记事本查看源代码编辑器都工作。

Method 4: Third-Party “View Source Editor” Editor 方法4:第三方“查看源代码编辑器”编辑器

There are few utility that able to help user to change default View Source viewer/editor used to display a web page HTML source code.有几个实用工具,能够帮助用户更改默认查看源码浏览器/编辑器用于显示网页的HTML源代码。 One such utility is Iconico View Source Editor, which available for free download: ViewSourceEditor.zip .一个这样的工具是Iconico查看源代码编辑器,其中:可免费下载ViewSourceEditor.zip With built-in View Source editor changer in IE8 (method 1), third party apps are less useful, as it provide similar function which allows user to choose which program that they want to use as default viewer to open HTML source code of a web page.由于内置的编辑器查看源换在IE8(方法1),第三方应用程序是那么有用,因为它提供类似的功能,让用户选择他们想要的程序作为默认查看器用来打开一个网页的HTML源代码页面。

 

http://www.mydigitallife.info/2009/11/10/how-to-change-default-view-source-editor-html-viewer-in-ie8 

posted on 2010-04-08 11:04  周泉  阅读(2348)  评论(0编辑  收藏  举报