branch : pmacs2
This commit is contained in:
moculus 2008-05-19 02:09:44 +00:00
parent c2c74a455c
commit e0e4ada07c
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import os, urllib
import color, method, mode
import color, default, method, mode
from lex import Grammar, PatternRule, RegionRule
from mode.xml import TagGrammar
from mode.javascript import JavascriptGrammar
@ -76,6 +76,7 @@ class HTML(mode.Fundamental):
}
config = {
'html.viewcmd': 'firefox&',
#'html.viewcmd': 'links',
}
_colorbase = {
@ -92,6 +93,7 @@ class HTML(mode.Fundamental):
colors['script.%s' % _name] = _colorbase[_name]
colors['style.%s' % _name] = _colorbase[_name]
colors['tag.%s' % _name] = _colorbase[_name]
actions = [HtmlViewPage, HtmlValidatePage, HtmlCheckSpelling]
def __init__(self, w):
mode.Fundamental.__init__(self, w)
@ -99,8 +101,6 @@ class HTML(mode.Fundamental):
self.add_bindings('close-brace', ('}',))
self.add_bindings('close-bracket', (']',))
self.add_bindings('xml-create-tag', ('M-t',))
self.add_action(HtmlViewPage())
self.add_action(HtmlCheckSpelling())
self.url = None
install = HTML.install