PyHtmlEdit is a simple Python text editor optimized for the kinds of HTML formatting that I commonly do.
- Author: Ryan McGreal
- Email: ryan@quandyfactory.com
- Homepage: http://quandyfactory.com/projects/2/pyhtmledit
- Repository: http://github.com/quandyfactory/PyHtmlEdit
PyHtmlEdit was assembled from stuff I found online and some functions I've written.
Released under the GNU General Public Licence, Version 2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
-
Version: 3.2
-
Release Date: 2023-08-31
- Python 3
- python-markdown2 https://pypi.org/project/markdown2/
- HTML2text https://pypi.org/project/html2text/
The biggest change is that previous versions of this program used Python 2.x, which is now obsolete and has met its end-of-life. The current version uses Python3.
Previous versions of this program used wxPython as the GUI library, which turned out to be quite a hassle. Now it uses Tkinter, which ships with Python by default and should be available to all users.
This software does not come bundled with a markdown parser. It assumes you have python-markdown2 installed.
https://pypi.org/project/markdown2/
So you should install it.
-
Release Date: 2023-08-31
-
Changes:
- Added Power BI to SQL Server and SQL Server to Power BI conversion to Format menu
- Added Bookmarklet to JS and JS to Bookmarklet conversion to Format menu
-
Release Date: 2020-05-27
-
Changes:
- Added support for Undo (Ctrl-z) and Redo (Ctrl-y).
- Added a Link section under the HTML menu for anchor and hyperlink tags.
- Include the version in the window title.
-
Release Date: 2020-05-25
-
Changes:
- Switched from Python 2.x to Python 3.x.
- Swapped the GUI library from wxPython to Tkinter.
- Added File -> Open-Insert, which opens a new file and adds it to the current document at the top.
- Added File -> Open-Append, which opens a new file and adds it to the current document at the bottom.
- Added Edit -> Find, which finds and highlights the next occurrence of the search term.
- Added Edit -> Replace Next, which finds and replaces the next occurrence of the search term.
- Added Edit -> Replace All, which finds and replaces every occurrence of the search term.
- Fixed a long-standing bug in the table creation function, which misplaced the tag before the tag.
- Added ability to specify caption, number of rows and number of columns for a new table.
- Removed some Format menu options that I literally never use.
- Dropped support for python-markdown, which is not as good as python-markdown2.
- Added Ctrl keyboard shortcuts for some common actions (e.g. Ctrl-r for replace all). (Alt keyboard shortcuts still work.)
-
Release Date: 2013-01-16
-
Changes:
- Added div.centered to HTML > Block menu
-
Release Date: 2012-06-08
-
Changes:
- Fixed the extra spaces inside
blockquote
elements onmarkdown_it()
- Added
class="initial"
to the first<p>
after an</h3>
- Fixed the extra spaces inside
-
Release Date: 2011-08-16
-
Changes:
- Change hyperlink function so it does not add a target="_blank".
-
Release Date: 2011-08-15
-
Changes:
- Moved document statistics from menu item into status bar, updated constantly
- Minor bug fix in function calculating word count when there are no words in document
-
Release Date: 2011-03-11
-
Changes:
- Added
try ... except ImportError
aroundimport wxversion
to catch people who don't have wx installed.
- Added
-
Release Date: 2011-02-10
-
Changes:
- Add blank line between block elements in Tools -> Markdown.
-
Release Date: 2010-06-22
-
Changes:
- Fixed small bug in Excel-to-table converter to trim extraneous white space from data rows.
-
Release Date: 2010-06-07
-
Changes:
- Changed alt-h-b-o (convert block to image) so that if you highlight an image source on one line with the title on the next line, the function formats both.
-
Release Date: 2010-01-07
-
Changes:
- Finally added icon
- Removed extranous print statements from code
-
Release Date: 2009-12-02
-
Changes:
- Clean function now replaces multiple spaces with a single space
-
Release Date: 2009-12-01
-
Changes:
- Word Count now includes a separate count of non-blank lines
-
Release Date: 2009-11-25
-
Changes:
- Generated tables (new and convert) now include
thead
andtbody
elements.
- Generated tables (new and convert) now include
-
Release Date: 2009-09-29
-
Changes:
- Added fix_common_misspellings(), which automatically replaces commonly misspelled words with their correct spellings. Case sensitive.
-
Release Date: 2009-09-28
-
Changes:
- Updated check_last_update() to reflect change in pygithubapi (send over user, repo instead of URL).
-
Release Date: 2009-09-25
-
Changes:
- Added proxy support for
check_last_update()
. - PyGithubApi.py must be at least version 0.11 to work with this version of PyHtmlEdit.
- Added
set_config(config)
to save configuration values in a pickled dictionary. Saves in a file calledpyhtmledit_config
in the same folder aspyhtmledit.py
. - Added
get_config()
to get configuration values from a pickled dictionary
- Added proxy support for
-
Release Date: 2009-09-24
-
Changes:
- added check_last_update() function, which uses pygithubapi and is available as "Check Version" from About menu. It compares version with the latest commit date in the GitHub API for the PyHtmlEdit repository.
- Added repository variable to top to link to public repository
-
Release Date: 2009-09-22
-
Changes:
- Modified Replace function to replace over entire document if no selection
- Added release date to About page.
-
Release Date: 2009-09-22
-
Changes:
- Fixed bug in table creation code that was adding as closing tag.
- Added a Replace function that takes a selection of text and replaces the value of
find
with the value ofreplace
. - Added an SQL function that converts special SQL punctuation to entity codes.
- Replaced CamelCase on function and method names to lowercase_with_underscores.
- Changed Markdown function to stop closing tag from going to a new line on Windows, and also adding a blank line after each paragraph.
-
Release Date: 2009-08-07
-
Changes:
- Added Tools function to convert markdown syntax into HTML. See note, below, for details.
-
Release Date: 2009-08-06
-
Changes:
- Replaced wx version kludge with wxversion.select()
- Added html2text function from: http://www.aaronsw.com/2002/html2text/
- Added an icon (webtools.ico)
- Added a note in README to add a tutorial in the future
- Included both a README.html and a README.txt
- Release Date: 2009-08-06