original_docstring: Create a postmarkup object that converts bbcode to XML snippets. Note
      that creating postmarkup objects is _not_ threadsafe, but rendering the
      html _is_ threadsafe. So typically you will need just one postmarkup instance
      to render the bbcode accross threads.
  
      include -- List or similar iterable containing the names of the tags to use
                 If omitted, all tags will be used
      exclude -- List or similar iterable containing the names of the tags to exclude.
                 If omitted, no tags will be excluded
      use_pygments -- If True, Pygments (http://pygments.org/) will be used for the code tag,
                      otherwise it will use <pre>code</pre>
      default_tag -- A tag to use when there is no appropriate tag registered,    
      kwargs -- Remaining keyword arguments are passed to tag constructors.
  
      
docstring: Create a postmarkup object that converts bbcode to XML snippets. Note
  that creating postmarkup objects is _not_ threadsafe, but rendering the
  html _is_ threadsafe. So typically you will need just one postmarkup instance
  to render the bbcode accross threads.
  
  - List or similar iterable containing the names of the tags to use
  If omitted, all tags will be used
  exclude -- List or similar iterable containing the names of the tags to exclude.
docstring_tokens: Create a postmarkup object that converts bbcode to XML snippets . Note that creating postmarkup objects is _not_ threadsafe but rendering the html _is_ threadsafe . So typically you will need just one postmarkup instance to render the bbcode accross threads . - List or similar iterable containing the names of the tags to use If omitted all tags will be used exclude -- List or similar iterable containing the names of the tags to exclude .
code: def create(include=None,
             exclude=None,
             use_pygments=True,
             default_tag=DefaultTag,
             **kwargs):
  
      """Create a postmarkup object that converts bbcode to XML snippets. Note
      that creating postmarkup objects is _not_ threadsafe, but rendering the
      html _is_ threadsafe. So typically you will need just one postmarkup instance
      to render the bbcode accross threads.
  
      include -- List or similar iterable containing the names of the tags to use
                 If omitted, all tags will be used
      exclude -- List or similar iterable containing the names of the tags to exclude.
                 If omitted, no tags will be excluded
      use_pygments -- If True, Pygments (http://pygments.org/) will be used for the code tag,
                      otherwise it will use <pre>code</pre>
      default_tag -- A tag to use when there is no appropriate tag registered,    
      kwargs -- Remaining keyword arguments are passed to tag constructors.
  
      """
  
      postmarkup = PostMarkup()
      postmarkup_add_tag = postmarkup.tag_factory.add_tag
      postmarkup.tag_factory.set_default_tag(default_tag)
  
      def add_tag(tag_class, name, *args, **kwargs):
          if include is None or name in include:
              if exclude is not None and name in exclude:
                  return
              postmarkup_add_tag(tag_class, name, *args, **kwargs)
      
      add_tag(SimpleTag, u'b', u'strong')
      add_tag(SimpleTag, u'i', u'em')
      add_tag(SimpleTag, u'u', u'u')
      add_tag(SimpleTag, u's', u'strike')
      add_tag(TableTag, u'table', u'table class="table"')
      add_tag(TableTag, u'tr', u'tr')
      add_tag(TableTag, u'td', u'td')
      add_tag(TableTag, u'th', u'th')
  
      add_tag(LinkTag, u'link', **kwargs)
      add_tag(LinkTag, u'url', **kwargs)
  
      add_tag(QuoteTag, u'quote')
  
      """
      add_tag(SearchTag, u'wiki',
              u"http://en.wikipedia.org/wiki/Special:Search?search=%s", u'wikipedia.com', **kwargs)
      add_tag(SearchTag, u'google',
              u"http://www.google.com/search?hl=en&q=%s&btnG=Google+Search", u'google.com', **kwargs)
      add_tag(SearchTag, u'dictionary',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      add_tag(SearchTag, u'dict',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      """
      add_tag(ImgTag, u'img')
      add_tag(YoutubeTag, u'youtube')
      add_tag(SpoilerTag, u'spoiler')
      add_tag(ListTag, u'list')
      add_tag(ListTag, u'ul')
      add_tag(OrderedListTag, u'ol')
      add_tag(ListItemTag, u'*')
      add_tag(ListItemTag, u'li')
  
      add_tag(HorizontalLineTag, u"hr")
      add_tag(SizeTag, u"size")
      add_tag(ColorTag, u"color")
      add_tag(AlignTag, u"center")
      add_tag(AlignTag, u"right")
      add_tag(AlignTag, u"left")
      add_tag(AlignTag, u"justify")
  
      if use_pygments:
          assert pygments_available, "Install Pygments (http://pygments.org/) or call create with use_pygments=False"
          add_tag(PygmentsCodeTag, u'code', **kwargs)
      else:
          add_tag(CodeTag, u'code', **kwargs)    
  
      return postmarkup
code_tokens: def create ( include = None , exclude = None , use_pygments = True , default_tag = DefaultTag , ** kwargs ) : postmarkup = PostMarkup ( ) postmarkup_add_tag = postmarkup . tag_factory . add_tag postmarkup . tag_factory . set_default_tag ( default_tag ) def add_tag ( tag_class , name , * args , ** kwargs ) : if include is None or name in include : if exclude is not None and name in exclude : return postmarkup_add_tag ( tag_class , name , * args , ** kwargs ) add_tag ( SimpleTag , u'b' , u'strong' ) add_tag ( SimpleTag , u'i' , u'em' ) add_tag ( SimpleTag , u'u' , u'u' ) add_tag ( SimpleTag , u's' , u'strike' ) add_tag ( TableTag , u'table' , u'table class="table"' ) add_tag ( TableTag , u'tr' , u'tr' ) add_tag ( TableTag , u'td' , u'td' ) add_tag ( TableTag , u'th' , u'th' ) add_tag ( LinkTag , u'link' , ** kwargs ) add_tag ( LinkTag , u'url' , ** kwargs ) add_tag ( QuoteTag , u'quote' ) """
      add_tag(SearchTag, u'wiki',
              u"http://en.wikipedia.org/wiki/Special:Search?search=%s", u'wikipedia.com', **kwargs)
      add_tag(SearchTag, u'google',
              u"http://www.google.com/search?hl=en&q=%s&btnG=Google+Search", u'google.com', **kwargs)
      add_tag(SearchTag, u'dictionary',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      add_tag(SearchTag, u'dict',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      """ add_tag ( ImgTag , u'img' ) add_tag ( YoutubeTag , u'youtube' ) add_tag ( SpoilerTag , u'spoiler' ) add_tag ( ListTag , u'list' ) add_tag ( ListTag , u'ul' ) add_tag ( OrderedListTag , u'ol' ) add_tag ( ListItemTag , u'*' ) add_tag ( ListItemTag , u'li' ) add_tag ( HorizontalLineTag , u"hr" ) add_tag ( SizeTag , u"size" ) add_tag ( ColorTag , u"color" ) add_tag ( AlignTag , u"center" ) add_tag ( AlignTag , u"right" ) add_tag ( AlignTag , u"left" ) add_tag ( AlignTag , u"justify" ) if use_pygments : assert pygments_available , "Install Pygments (http://pygments.org/) or call create with use_pygments=False" add_tag ( PygmentsCodeTag , u'code' , ** kwargs ) else : add_tag ( CodeTag , u'code' , ** kwargs ) return postmarkup
short_docstring: Create a postmarkup object that converts bbcode to XML snippets.
short_docstring_tokens: Create a postmarkup object that converts bbcode to XML snippets .
comment: """Create a postmarkup object that converts bbcode to XML snippets. Note
      that creating postmarkup objects is _not_ threadsafe, but rendering the
      html _is_ threadsafe. So typically you will need just one postmarkup instance
      to render the bbcode accross threads.
  
      include -- List or similar iterable containing the names of the tags to use
                 If omitted, all tags will be used
      exclude -- List or similar iterable containing the names of the tags to exclude.
                 If omitted, no tags will be excluded
      use_pygments -- If True, Pygments (http://pygments.org/) will be used for the code tag,
                      otherwise it will use <pre>code</pre>
      default_tag -- A tag to use when there is no appropriate tag registered,    
      kwargs -- Remaining keyword arguments are passed to tag constructors.
  
      """$SEP$"""
      add_tag(SearchTag, u'wiki',
              u"http://en.wikipedia.org/wiki/Special:Search?search=%s", u'wikipedia.com', **kwargs)
      add_tag(SearchTag, u'google',
              u"http://www.google.com/search?hl=en&q=%s&btnG=Google+Search", u'google.com', **kwargs)
      add_tag(SearchTag, u'dictionary',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      add_tag(SearchTag, u'dict',
              u"http://dictionary.reference.com/browse/%s", u'dictionary.com', **kwargs)
      """