Recent

Author Topic: AC Simple Notepad - Made with Lazarus  (Read 1615 times)

AsleyCruz

  • Jr. Member
  • **
  • Posts: 98
    • Graphic and web designer
AC Simple Notepad - Made with Lazarus
« on: April 18, 2023, 08:34:51 am »
Hi everyone

I got tired of Notepad on Win11 for some reasons and decided to developed (with Lazarus)
this little tool (freeware) for my use with some extra functions and now want to share
with all of you, hoping you find it useful.

Suggestions are welcome. Found bug? please, let me know.

— One .exe file
— Tested on Windows 7 and 11

Preview:
https://asleycruz.com/assets/img/laz/acsn/acsn1.png

Download AC Simple Notepad (5.15MB unzipped):
https://asleycruz.com/downloads/AC-Simple-Notepad-v1.1.zip

Regards
« Last Edit: April 18, 2023, 05:21:23 pm by AsleyCruz »
Graphic & web designer

Slyde

  • Full Member
  • ***
  • Posts: 142
  • My best friend.
Re: AC Simple Notepad - Made with Lazarus
« Reply #1 on: April 18, 2023, 11:00:59 am »
Nice work.  Uncluttered and clean.

hansotten

  • Jr. Member
  • **
  • Posts: 86
Re: AC Simple Notepad - Made with Lazarus
« Reply #2 on: April 18, 2023, 11:26:52 am »
Looks nice!

Care to open source it? With Lazarus it is possible to run this on Linux, Mac etc if  having source.

Hans

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: AC Simple Notepad - Made with Lazarus
« Reply #3 on: April 18, 2023, 11:54:44 am »
Could you add a statusbar notification of the current text file encoding?

domasz

  • Sr. Member
  • ****
  • Posts: 320
Re: AC Simple Notepad - Made with Lazarus
« Reply #4 on: April 18, 2023, 01:51:53 pm »
Very nice. Where did you get icons from?

Bart

  • Hero Member
  • *****
  • Posts: 5140
    • Bart en Mariska's Webstek
Re: AC Simple Notepad - Made with Lazarus
« Reply #5 on: April 18, 2023, 03:33:19 pm »
Nice. Like (many) others I have my own notepad replacement, similar to yours.
It has configurable highlighters for several languages.

Bart

AsleyCruz

  • Jr. Member
  • **
  • Posts: 98
    • Graphic and web designer
Re: AC Simple Notepad - Made with Lazarus
« Reply #6 on: April 18, 2023, 05:18:33 pm »
Could you add a statusbar notification of the current text file encoding?

Updated to v1.1 with option (on bottom right) to change the encoding

Looks nice!

Care to open source it? With Lazarus it is possible to run this on Linux, Mac etc if  having source.

Hans

Not for now, but the main packages used are SpkToolbar and SynEdit in case someone want to build its own.

Very nice. Where did you get icons from?

Icons from FatCow (3926 free png):
https://github.com/gammasoft/fatcow
« Last Edit: April 18, 2023, 06:05:52 pm by AsleyCruz »
Graphic & web designer

kirchfritz

  • Jr. Member
  • **
  • Posts: 51
  • WIN10 LAZ 2.2.4 FPC 3.2.2
Re: AC Simple Notepad - Made with Lazarus
« Reply #7 on: April 20, 2023, 07:45:05 pm »
Very nice application!
One question: How did you implement the close button on every PageControl-Tab?

AsleyCruz

  • Jr. Member
  • **
  • Posts: 98
    • Graphic and web designer
Re: AC Simple Notepad - Made with Lazarus
« Reply #8 on: April 20, 2023, 08:22:57 pm »
Very nice application!
One question: How did you implement the close button on every PageControl-Tab?

I took the idea from here
https://forum.lazarus.freepascal.org/index.php/topic,52236.0.html



Thanks guys for your positive comments.



FUTURE: As I work with html files, I'm trying
to add a "fast code" for all html tags (including BootStrap)
i.e. If you type "img" and then press "Ctrl+Enter",
the application will type "<img src=' '>".

If this is successful, a Pro version of AC Simple Notepad
could be released (Shareware).

Any idea is welcome.
Graphic & web designer

Bart

  • Hero Member
  • *****
  • Posts: 5140
    • Bart en Mariska's Webstek
Re: AC Simple Notepad - Made with Lazarus
« Reply #9 on: April 20, 2023, 10:58:59 pm »
Use OnKeyDown of the TSynEdit to intercept Ctrl+Enter.
Determine where the caraet (text cursor) is.
Determine if user type 'img' at that position.
Use TextBetweenPoints() to change 'img' into '<img src="">'.

Bart

AsleyCruz

  • Jr. Member
  • **
  • Posts: 98
    • Graphic and web designer
Re: AC Simple Notepad - Made with Lazarus
« Reply #10 on: April 20, 2023, 11:41:49 pm »
Use OnKeyDown of the TSynEdit to intercept Ctrl+Enter.
Determine where the caraet (text cursor) is.
Determine if user type 'img' at that position.
Use TextBetweenPoints() to change 'img' into '<img src="">'.

Bart

Thanks, bro
I had another idea but I will try with yours.

Regards
Graphic & web designer

AlexTP

  • Hero Member
  • *****
  • Posts: 2292
    • UVviewsoft
Re: AC Simple Notepad - Made with Lazarus
« Reply #11 on: April 25, 2023, 11:39:02 pm »
Is app based on ATSynEdit? If so, it has the good support for huge files and huge lines. Even better than Sublime Text.

https://wiki.freepascal.org/CudaText_VS_other_editors
4.2 Performance of loading huge files
4.3 Performance on huge lines

AsleyCruz

  • Jr. Member
  • **
  • Posts: 98
    • Graphic and web designer
Re: AC Simple Notepad - Made with Lazarus
« Reply #12 on: April 26, 2023, 01:49:57 pm »
Is app based on ATSynEdit? If so, it has the good support for huge files and huge lines. Even better than Sublime Text.

https://wiki.freepascal.org/CudaText_VS_other_editors
4.2 Performance of loading huge files
4.3 Performance on huge lines

Yes, it's based on ATSynEdit.
Thanks for the info. I will check it out
Graphic & web designer

AlexTP

  • Hero Member
  • *****
  • Posts: 2292
    • UVviewsoft
Re: AC Simple Notepad - Made with Lazarus
« Reply #13 on: April 26, 2023, 03:15:25 pm »
It will be 'thank you' from you, if you perform the same tests again in 2023:

https://wiki.freepascal.org/CudaText_VS_other_editors
4.2 Performance of loading huge files
4.3 Performance on huge lines

You may do it on Windows of course with other editors. (Sublime Text, VSCode, UltraEdit, Notepad++, RJTextEd, Notepad2, Kate for Windows, ... don't forget CudaText)
« Last Edit: April 26, 2023, 03:19:46 pm by AlexTP »

 

TinyPortal © 2005-2018