DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: TextAdept: Lua-extensible Editor  (Read 29,656 times)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
TextAdept: Lua-extensible Editor
« on: April 20, 2012, 08:10 AM »
Today, Edvard pointed out TextAdept:

Quote
Textadept is a fast, minimalist, and ridiculously extensible cross-platform text editor for programmers. Written in a combination of C and Lua and relentlessly optimized for speed and minimalism over the years, Textadept is an ideal editor for programmers who want endless extensibility options without sacrificing speed or succumbing to code bloat and featuritis.

Perhaps trying to extend TextAdept and read some of its source may be a helpful activity if one is interested in learning some Lua.

textadept-logo.png



For the win32 download of version 5.2, got the following checksums:

MD5: 20eabe5ae0d62dfd8b44cb3f7cb3ad83
SHA1: bc35c8b9743ffb29fd5669a78cefbb79fa643b4b

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #1 on: April 23, 2012, 07:46 AM »
Thanks ewemoa, looks interesting.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #2 on: May 11, 2014, 08:45 AM »
Found a pros/cons review comparing Textadept with Sublime/VIM/Emacs here:

http://yfl.bahmanm.com/Members/ttmrichter/software-reviews/textadept-review

Current version is 7.2 by the way.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #3 on: May 11, 2014, 09:01 AM »
Textadept has moved on since the review as it seems. 7.2 which I'm running right now has tabs for example.

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: TextAdept: Lua-extensible Editor
« Reply #4 on: May 11, 2014, 09:05 AM »
My biggest problem with Textadept is the font rendering on Windows. The following compares Textadept (dark theme) with Sublime (solarized theme), using the Source Code Pro and Consolas fonts:

[attachimg=#]

According to the author, it's a problem with GTK on Windows, but I simply can't look at it for more than a few minutes without developing a headache -- it feels a bit like watching one of those anaglyph 3D images without wearing the glasses :(.
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: TextAdept: Lua-extensible Editor
« Reply #5 on: May 11, 2014, 02:12 PM »
Quote
Textadept is easily on par with Vim, Emacs and ST (to name three popular, powerful editors) in terms of its capabilities.

Where's the mail client?

I guess the "problem with GTK" is a problem with the developer. Other GTK editors work fine.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,954
Re: TextAdept: Lua-extensible Editor
« Reply #6 on: May 11, 2014, 03:42 PM »
Indeed, there are differences between the two, but not bothersome to me. These solarized colors in your screenshot, do (but that is a matter of preference, of course).

Here is a side-by-side from both with default settings and colors on my windows 7 with Ati video-card (Radeon HD4670) with the latest drivers for that particular video-card:
[attach]
The easy path is usually downhill...

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #7 on: May 11, 2014, 07:04 PM »
And here one from me, both with Consolas and Monokai Themes (although these differ for the two editors as is obvious):

Same conclusion as Shades.

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: TextAdept: Lua-extensible Editor
« Reply #8 on: May 11, 2014, 07:38 PM »
That's interesting -- I wonder what is causing the horrible red/blue fringing on vertical edges on my setup :(.
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: TextAdept: Lua-extensible Editor
« Reply #9 on: May 11, 2014, 08:38 PM »
That's interesting -- I wonder what is causing the horrible red/blue fringing on vertical edges on my setup :(.

Jibz, your screenshots remind me of ClearType colouring/anti-aliasing.  Perhaps that's what is causing it?  For the record, I can't STAND ClearType at all; it always looks fuzzy and out-of-focus to me.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: TextAdept: Lua-extensible Editor
« Reply #10 on: May 12, 2014, 04:52 AM »
no...more...text....editors...i can't take it anymore.
:sick:

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: TextAdept: Lua-extensible Editor
« Reply #11 on: May 12, 2014, 06:00 AM »
more text editors...more text editors...more text editors...I still haven't found "the one"  ;D
Greetings, Stefan.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #12 on: May 12, 2014, 06:25 AM »
Maybe we need a text-editors-only sub-forum ;)

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: TextAdept: Lua-extensible Editor
« Reply #13 on: May 12, 2014, 06:27 AM »
That's interesting -- I wonder what is causing the horrible red/blue fringing on vertical edges on my setup :(.

Jibz, your screenshots remind me of ClearType colouring/anti-aliasing.  Perhaps that's what is causing it?  For the record, I can't STAND ClearType at all; it always looks fuzzy and out-of-focus to me.

That reminds me of: https://www.youtube.com/watch?v=3KZ6mIsbDc4

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: TextAdept: Lua-extensible Editor
« Reply #14 on: May 12, 2014, 07:20 AM »
That's interesting -- I wonder what is causing the horrible red/blue fringing on vertical edges on my setup :(.

Jibz, your screenshots remind me of ClearType colouring/anti-aliasing.  Perhaps that's what is causing it?  For the record, I can't STAND ClearType at all; it always looks fuzzy and out-of-focus to me.

That could very well be the case, but I am not seeing these artifacts in other editors. Perhaps Textadept is choosing a bad renderer on my machine, but I can't find any option to change it, and I don't want to turn off ClearType systemwide just for one editor.

If only I could get Dina to work in Textadept :-[.
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: TextAdept: Lua-extensible Editor
« Reply #15 on: May 12, 2014, 07:37 AM »
Yay!  It's got Rectangular Selection!
Boo!  It can't compile my Pascal tomfoolery.

Should be just a matter of digging in the .lua configuration files, eh?
All children left unattended will be given a mocha and a puppy.

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: TextAdept: Lua-extensible Editor
« Reply #16 on: May 12, 2014, 07:59 AM »
Maybe we need a text-editors-only sub-forum ;)

Yay! Time to rant about Atom!
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: TextAdept: Lua-extensible Editor
« Reply #17 on: May 12, 2014, 10:39 AM »
If only I could get Dina to work in Textadept :-[.

The following seemed to work under a *NIX:

0. Ensure Dina is installed.
1. Open ~/.textadept/init.lua
2. Add the following:

Code: (lua)
ui.set_theme('dark', {font = 'Dina', fontsize = 13})

3. Save the file.
4. Start textadept.



AdeptedAdapted from instructions via:

 http://foicica.com/textadept/09_Themes.html

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: TextAdept: Lua-extensible Editor
« Reply #18 on: May 12, 2014, 11:19 AM »
If only I could get Dina to work in Textadept :-[.
The following seemed to work under a *NIX:

Thanks, unfortunately that gives some proportional default substitution font instead. Perhaps there is a problem with bitmap fonts as well, I've emailed the author.
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: TextAdept: Lua-extensible Editor
« Reply #19 on: May 12, 2014, 12:24 PM »
Wish you luck on this.

May be someone else with a *NIX environment can confirm whether the instructions work for them.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: TextAdept: Lua-extensible Editor
« Reply #20 on: May 12, 2014, 07:20 PM »
Maybe we need a text-editors-only sub-forum ;)

Subforum? You could do up an entire community website plus a forum on that topic. ;D

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: TextAdept: Lua-extensible Editor
« Reply #21 on: May 13, 2014, 02:58 AM »
Maybe we need a text-editors-only sub-forum ;)

Yay! Time to rant about Atom!

[rant]Tried Atom; it wouldn't compile, even though I had all the dependencies and specs.  Strike one.
So I tried somebody's PPA, which worked well...-ish.  7 seconds to start up. Wat?  For a text editor?  Strike two.
Doesn't have column/rectangular selection or bookmark by search.  Strike three.[/rant]
:-\

Ah well, it's still young yet, let's see how it does in a few months. :-[

Also, no Pascal lexer, and no option to build, compile, or run from the editor (that I could see).

Getting a bit more comfy with TextAdept.  With a few tweaks, it may rival Geany  :o ...pardon my doubts.
All children left unattended will be given a mocha and a puppy.

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: TextAdept: Lua-extensible Editor
« Reply #22 on: May 13, 2014, 09:42 AM »
Atom is based on a bloated web browser. Might explain things.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: TextAdept: Lua-extensible Editor
« Reply #23 on: May 13, 2014, 09:51 PM »
Also, no Pascal lexer, and no option to build, compile, or run from the editor (that I could see).

CTRL+SHIFT+P - search for packages, and clikc on install packages.  Search for Pascal.

https://atom.io/packages/language-pascal

You can also remove packages that you don't need to speed it up... there's even a timecop package that's included that will narrow down the items that made it take a long time.

Original address: https://www.donationcoder.com/forum/index.php?topic=30740.0