parent
c2c74a455c
commit
e0e4ada07c
|
@ -1,5 +1,5 @@
|
||||||
import os, urllib
|
import os, urllib
|
||||||
import color, method, mode
|
import color, default, method, mode
|
||||||
from lex import Grammar, PatternRule, RegionRule
|
from lex import Grammar, PatternRule, RegionRule
|
||||||
from mode.xml import TagGrammar
|
from mode.xml import TagGrammar
|
||||||
from mode.javascript import JavascriptGrammar
|
from mode.javascript import JavascriptGrammar
|
||||||
|
@ -76,6 +76,7 @@ class HTML(mode.Fundamental):
|
||||||
}
|
}
|
||||||
config = {
|
config = {
|
||||||
'html.viewcmd': 'firefox&',
|
'html.viewcmd': 'firefox&',
|
||||||
|
#'html.viewcmd': 'links',
|
||||||
}
|
}
|
||||||
|
|
||||||
_colorbase = {
|
_colorbase = {
|
||||||
|
@ -92,6 +93,7 @@ class HTML(mode.Fundamental):
|
||||||
colors['script.%s' % _name] = _colorbase[_name]
|
colors['script.%s' % _name] = _colorbase[_name]
|
||||||
colors['style.%s' % _name] = _colorbase[_name]
|
colors['style.%s' % _name] = _colorbase[_name]
|
||||||
colors['tag.%s' % _name] = _colorbase[_name]
|
colors['tag.%s' % _name] = _colorbase[_name]
|
||||||
|
actions = [HtmlViewPage, HtmlValidatePage, HtmlCheckSpelling]
|
||||||
|
|
||||||
def __init__(self, w):
|
def __init__(self, w):
|
||||||
mode.Fundamental.__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-brace', ('}',))
|
||||||
self.add_bindings('close-bracket', (']',))
|
self.add_bindings('close-bracket', (']',))
|
||||||
self.add_bindings('xml-create-tag', ('M-t',))
|
self.add_bindings('xml-create-tag', ('M-t',))
|
||||||
self.add_action(HtmlViewPage())
|
|
||||||
self.add_action(HtmlCheckSpelling())
|
|
||||||
self.url = None
|
self.url = None
|
||||||
|
|
||||||
install = HTML.install
|
install = HTML.install
|
||||||
|
|
Loading…
Reference in New Issue