padding-left: 5px;
}
+/* Heading anchors */
+.heading:link, .heading:visited {
+ border: none;
+ color: #d7d7d7;
+ font-size: .8em;
+ vertical-align: text-top;
+}
+* > .heading:link, * > .heading:visited {
+ visibility: hidden;
+}
+
+h1:hover .heading, h2:hover .heading, h3:hover .heading,
+h4:hover .heading, h5:hover .heading, h6:hover .heading {
+ visibility: visible;
+}
+
strong.success {
padding-left: 0.1em;
background-color: #22ee22;
#! /usr/bin/env python
+# -*- coding: utf-8 -*-
#
# Copyright 1999, 2000 Martin Pool <mbp@humbug.org.au>
# Copyright 2002 Gerardo Poggiali
else:
self.h_level = len(word) - 1
self.h_cnt += 1
- result = '<h%d id="%d"><a class="heading" href="#%d">*</a> ' % (self.h_level, self.h_cnt, self.h_cnt)
+ #abridged = re.sub('[^a-z_]', '', word.lower().replace(' ', '_'))
+ result = '<h%d id="%d"><a class="heading" href="#%d">ΒΆ</a> ' % (self.h_level, self.h_cnt, self.h_cnt)
return result
def _br_repl(self, word):
+ '</b></p>')
print '<div class="editor"><form method="post" action="%s/%s">' % (script_name(), self.page_name)
print '<input type="hidden" name="savepage" value="%s">' % (self.page_name)
- print """<textarea wrap="virtual" id="editor" name="savetext" rows="17" cols="80">%s</textarea>""" % (preview or self.get_raw_body())
+ print """<textarea wrap="off" spellcheck="true" id="editor" name="savetext" rows="17" cols="100">%s</textarea>""" % (preview or self.get_raw_body())
print """
<br />
<input type="submit" name="save" value="Save" />