Python 3 tkinter Text Editor with Syntax Highlighting

tkinter Text is a powerful widget. Yet we don’t see many popular programs written in it. There was a web browser implemented in it (I have tried to find it back again without success. If someone knows where to find it, please let me know.). IDLE is dismissed as amateur’s IDE. It is a shame that such an easy to use library is not utilized fully.

I love Python, tkinter. Actually this is my third text editor in Python 3 tkinter. I have hosted two of them in GitHub and made video about one of them in youtube. This one is not published anywhere as of yet.

Sometimes I get confused between my editor and IDLE if just for the look of syntax highlighting. As of now it highlights much of Python syntax correctly. What I still need to do is: implement live syntax-highlighting, display line-numbers, implement folding.

Features:
Syntax highlighting for multiple languages
Search bar instead of dialog
Expand tag function: type div, press tab, it becomes
<div >|</div > (it inserts div tags with cursor inbetween, ignore space in div tag, it’s due to wordpress formating)
where “|” is your cursor.

Planned features:
(Compile and) run file
Live syntax highlighting
Line-numbers
List of methods/functions etc.

Editor

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s