Package Editra :: Package src :: Package autocomp :: Module htmlcomp
[hide private]

Module htmlcomp

source code

Simple autocompletion support for HTML and XML documents.


Author: Cody Precord <cprecord@editra.org>

Classes [hide private]
  Completer
Code completer provider
Functions [hide private]
 
_FindXmlTags(text)
Dynamically generate a list of possible xml tags based on tags found in the given text.
source code
Variables [hide private]
  __cvsid__ = '$Id: htmlcomp.py 59583 2009-03-17 03:49:44Z CJP $'
  __revision__ = '$Revision: 59583 $'
  TAGS = ['!--', 'a', 'abbr', 'accept', 'accesskey', 'acronym', ...
  NLINE_TAGS = ('body', 'head', 'html', 'ol', 'style', 'table', ...
  TAG_RE = re.compile(r'<\s*([a-zA-Z][a-zA-Z0-9]*)')
  PHP_AREA = [124, 125, 104, 118, 119, 126, 122, 127, 120, 123, ...
  HTML_AREA = [15, 16, 3, 4, 17, 9, 0, 6, 10, 5, 8, 18, 14, 23, ...
Function Details [hide private]

_FindXmlTags(text)

source code 

Dynamically generate a list of possible xml tags based on tags found in the given text.

Parameters:
  • text - string
Returns:
sorted list

Variables Details [hide private]

TAGS

Value:
['!--',
 'a',
 'abbr',
 'accept',
 'accesskey',
 'acronym',
 'action',
 'address',
...

NLINE_TAGS

Value:
('body', 'head', 'html', 'ol', 'style', 'table', 'tbody', 'ul')

PHP_AREA

Value:
[124, 125, 104, 118, 119, 126, 122, 127, 120, 123, 121]

HTML_AREA

Value:
[15,
 16,
 3,
 4,
 17,
 9,
 0,
 6,
...