* * *

Author Topic: [SOLVED] Pascal editor for Android  (Read 1652 times)

Eugene Loza

  • Sr. Member
  • ****
  • Posts: 420
    • My "almost daily" development blog
[SOLVED] Pascal editor for Android
« on: December 21, 2016, 04:00:39 pm »
Hi all!
I'd be very grateful if you could point me to some convenient notepad/source free editor for Android that supports Pascal syntax (at least keep indentations, but best if major keywords are highlighted and pascal blocks are automatically indented).

I've found it very convenient to write some code on my way to work, but the notepad I use for taking notes requires me to put spaces every time by hand :)

Thanks a lot!
« Last Edit: December 23, 2016, 08:58:26 am by Eugene Loza »
My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)

Eugene Loza

  • Sr. Member
  • ****
  • Posts: 420
    • My "almost daily" development blog
Re: Pascal editor for Android
« Reply #1 on: December 22, 2016, 05:01:51 pm »
Had a little test of available editors today.

RadNotepad
Free from ads.
Doesn't keep indent.
Highlights pascal syntax.
Doesn't save the file automatically (e.g. closing app looses progress)
Easy and lightweight

VisiScript Text Editor
Free from ads.
Doesn't keep indent.
Highlights pascal syntax.
Very uncomfortable in input. Problems with starting a new line. Weird/absent options.

Dcoder, Mobile Coding IDE
Requires internet to work. Couldn't launch offline.
Ads.

DroidEdit (free code editor)
contains ads on top of code - very annoying
doesn't highlight pascal syntax
Keeps indent but doesn't catch pascal blocks automatically

CodePad lite
Support stopped, only paid version remains maintained.
Settings not working.
Doesn't indent.
Doesn't highlight pascal syntax.

So... basically there is no good option yet? Or do I miss something?
My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)

Leledumbo

  • Hero Member
  • *****
  • Posts: 7625
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Pascal editor for Android
« Reply #2 on: December 23, 2016, 05:11:49 am »
It's even hard to find the paid ones, only PascalGUI is my recommendation but it's paid (kind of cheap though) and I guess doesn't keep indentation (I don't code on street often, so I'm not sure about this feature).
« Last Edit: December 23, 2016, 05:15:01 am by Leledumbo »

Eugene Loza

  • Sr. Member
  • ****
  • Posts: 420
    • My "almost daily" development blog
Re: Pascal editor for Android
« Reply #3 on: December 23, 2016, 08:54:25 am »
Thanks, Leledumbo! I was looking at PascalGUI, but I usually not up for paying for something "I don't know if will even work as expected", but most of all is that I don't store any money in my google account and I don't want to link any there.
And thanks for noting that indent issue, keeping indent (and ideally automatically adding it) is the main feature why I'm looking for a new text editor.

Looks like I've found it :)

QuickEdit
Supports pascal syntax highlighting
Doesn't remember selected syntax, should be re-initialized each app restart, but either it's doing some autodetection by file "pas" extension, or... anyway, sometimes it detects pascal syntax automatically as default.
Keeps indent
Can't indent selected text (only a single line)
No automatic "catching" of pascal blocks like Lazarus does (no autoindent)
Search and replace
Autosave option present
Undo/redo however, hidden in sub-menu
Copy-paste working
Can change font size
Font options and dark theme present
Can't choose default save folder, but looks like it remembers the last save folder.
Doesn't restore last session on restart... despite the "restore last session" is checked.
No ads in offline.
"Fullscreen mode" gives a little more space for editor

and two others I was testing today:

Jota Text Editor
Indent doesn't work (however, option is available in settings but it doesn't work for some reason...)
No pascal syntax highlighting
Many useful options and looks like a very convenient FOSS editor, but definitely not for pascal

Quoda Code Editor
in-app purchaces, access to identity
Heavyweight, loads slowly
Ads in offline
No pascal syntax support / no autoindentation
« Last Edit: December 23, 2016, 11:08:17 am by Eugene Loza »
My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)

jwdietrich

  • Hero Member
  • *****
  • Posts: 931
    • formatio reticularis
Re: [SOLVED] Pascal editor for Android
« Reply #4 on: December 23, 2016, 01:16:11 pm »
PascalGUI supports indentation and syntax colouring. Since it is bundled with the Free Pascal compiler it is a very nice solution to write simple console applications underway.
« Last Edit: December 23, 2016, 08:33:59 pm by jwdietrich »
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

Lazarus 1.6.4 | FPC 3.0.2 | PPC, Intel, ARM | macOS, Windows, Linux

The_Librarian

  • New member
  • *
  • Posts: 7
Re: [SOLVED] Pascal editor for Android
« Reply #5 on: January 11, 2017, 02:20:11 pm »
Playing around with PascalGUI (Android) - seems to do the trick for now.

On Windows, notepad++ is able to recognize Pascal code, and handle it accordingly.

Thaddy

  • Hero Member
  • *****
  • Posts: 4248
Re: [SOLVED] Pascal editor for Android
« Reply #6 on: January 11, 2017, 02:29:35 pm »
Yes, PascalGUI is a good solution. Although I am still worrying about its licensing (which may not be correct)
It is cheap, though, (for me) and maybe the author - who visits this forum - can enlighten us about the license (since it comes without sourcecode, there may be a GPL infringement, but maybe not)
Anyway, don't worry: It works. It's cheap. It's worth paying for.

Note that FPC itself will run in many android consoles......

And then examine this http://forum.lazarus.freepascal.org/index.php?topic=23927.0 .... Also works (w/o real root and with FP as editor)
« Last Edit: January 11, 2017, 02:35:36 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus