Recent

Author Topic: My Little Markdown Editor  (Read 960 times)

DreamVB

  • New Member
  • *
  • Posts: 24
My Little Markdown Editor
« on: July 31, 2022, 09:45:35 pm »
hi, guys

This is a little markdown editor I made some weeks back for myself, but over the weekend I updated and added new things it very basic to use just like notepad so you easy get the hang of it. it got a lot of features the only one feature it lacks and I would of liked to add is a preview of the markdown that been editor but was not sure how to implant it. anyway I uploaded to GitHub since I not had time to update my website hope it maybe useful for someone.

https://github.com/DreamVB/markdown-Editor
When your dreams come true

AlexTP

  • Hero Member
  • *****
  • Posts: 1900
    • UVviewsoft
Re: My Little Markdown Editor
« Reply #1 on: July 31, 2022, 10:13:45 pm »
Not to critic it, but how is it better than CudaText with Markdown lexer?

DreamVB

  • New Member
  • *
  • Posts: 24
Re: My Little Markdown Editor
« Reply #2 on: July 31, 2022, 10:18:21 pm »
Not to critic it, but how is it better than CudaText with Markdown lexer?

I not heard of CudaText but I check it out, I just really wanted to make something my self
When your dreams come true

Roland57

  • Sr. Member
  • ****
  • Posts: 310
Re: My Little Markdown Editor
« Reply #3 on: July 31, 2022, 11:12:18 pm »
Hello!

Nice little tool. I will use it.

Please consider to add Linux compatibility, even like this (for example):

Code: Pascal  [Select][+][-]
  1. procedure Tfrmmain.mnuGotoClick(Sender: TObject);
  2. // ...
  3.     {$IFDEF WINDOWS}
  4.     //Get line index
  5.     RetVal := SendMessage(txtEd.Handle, EM_LINEINDEX, lnIndex - 1, 0);
  6.     //Get line length
  7.     lnLen := SendMessage(txtEd.Handle, EM_LINELENGTH, RetVal, 0) + 2;
  8.     //highlight the line
  9.     txtEd.SelStart := RetVal;
  10.     txtEd.SelLength := lnLen;
  11.     {$ENDIF}

Until you find an equivalent for these commands.

A little thing I noticed. When I type Shift+h, it inserts an hyperlink.
« Last Edit: July 31, 2022, 11:14:45 pm by Roland57 »

DreamVB

  • New Member
  • *
  • Posts: 24
Re: My Little Markdown Editor
« Reply #4 on: August 01, 2022, 03:28:13 pm »
Thanks for the info Roland57 glad you like my project. I now updated the source of the goto and it should work on Linux as it does not need the windows send message anymore, I also removed windows from the uses, I also fixed the ctrl+h problem, I am just tweaking around with the code and should be-able to upload to night so check back.
When your dreams come true

Edson

  • Hero Member
  • *****
  • Posts: 1248
Re: My Little Markdown Editor
« Reply #5 on: August 01, 2022, 04:42:15 pm »
Simple editor. Nice project.

Some observations:

- Modern editors use multiple windows editors tabs.
- Some colored text will helpful like Notepad++ do.
- Some code completion will be glad.
- Use a better name for units in your code (Not Unit1, Unit2, ...)
- Include binary files in Github.


Greetings
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

DreamVB

  • New Member
  • *
  • Posts: 24
Re: My Little Markdown Editor
« Reply #6 on: August 01, 2022, 06:43:24 pm »
Thanks for the suggestions Edson I will look into working on them in future updates. Glad you like my project
When your dreams come true

Nicole

  • Sr. Member
  • ****
  • Posts: 355
Re: My Little Markdown Editor
« Reply #7 on: August 02, 2022, 07:34:34 am »
Thank you for the nice editor!

DreamVB

  • New Member
  • *
  • Posts: 24
Re: My Little Markdown Editor
« Reply #8 on: August 03, 2022, 09:32:40 pm »
Hi guys just like to say I done a new updated to v 1.0.2 few updates and new features hope you like it
All comments and suggestions are welcome.

https://github.com/DreamVB/markdown-Editor
When your dreams come true

 

TinyPortal © 2005-2018