Recent

Author Topic: CudaText Editor (written in Lazarus)  (Read 23562 times)

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #15 on: August 14, 2015, 04:06:44 am »

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #16 on: August 14, 2015, 09:55:55 am »
redone map. Now i don't do TextOut with fontsize=2, i do Line() 1x2 pixel for chars. Still need to speedup hiliting, but map OK now.

(dbgrids.pas: If lexer Off, map is fast, if lexer On, map is slow)
Upd.

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: CudaText Editor (written in Lazarus)
« Reply #17 on: August 14, 2015, 01:11:53 pm »
Thanks Alextp for the wiki update. Seeing as SynWrite is the "big brother" of CudaText, I installed SynWrite and gave it a try.

Unfortunately SynWrite didn't handle my files correctly. It didn't display my IBM850, CP437 and other UTF-8 files correctly. No matter what I tried in the settings, it didn't work and I saw garbled characters on screen.

Clearly I'm just spoilt for choice with EditPad Pro. But to be fair, not many editors I have tried comes close to EditPad Pro's excellent text encoding support (interpreting and conversions) - and I've tried a LOT of text editors. Even though EPP is a Windows application, it is that good, that I decided to even use it under FreeBSD (via WINE) as my editor of choice. I normally don't like running Windows apps via WINE.

If CudaText can match some of the SynWrite features there is promise for the project. I also recommend you download a trial version of EditPad Pro (or LITE) and give it a try - if only to get some ideas.

Macro Recording, advanced settings per File Type etc are other immensely useful features of EPP.

I wish you all the luck with the CudaText project. I know how hard it is to start something from scratch.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #18 on: August 17, 2015, 09:02:03 pm »
Graeme, wrote in PM, about Synwrite. It works ok on Win7 and CudaText also has encodings support..
« Last Edit: August 21, 2015, 12:38:19 am by Alextp »

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #19 on: August 25, 2015, 05:39:01 pm »
Home is now http://uvviewsoft.com/cudatext/
Update. V0.5.X.

esvignolo

  • Full Member
  • ***
  • Posts: 149
  • Using FPC in Windows, Linux, Macos
Re: CudaText Editor (written in Lazarus)
« Reply #20 on: August 27, 2015, 01:01:33 am »
Hi! is very nice text editor, i used in windows and macos, but macos version have some problems, i think maybe could the directories.

http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Configuration_files

(Replacing de ./.cudatext/Data from last windows version, the OS X version work fine too.)

For show Icon on OS X:
Edit info.plist  and add
 <key>CFBundleIconFile</key>
  <string>cudatext</string>

And into resourses directory add the icns file (attached)



Good work :)
« Last Edit: August 27, 2015, 01:47:09 am by esvignolo »

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #21 on: August 30, 2015, 11:21:36 am »
>OSX has some problems

What problems? i don't get idea of your post.

esvignolo

  • Full Member
  • ***
  • Posts: 149
  • Using FPC in Windows, Linux, Macos
Re: CudaText Editor (written in Lazarus)
« Reply #22 on: August 31, 2015, 05:09:24 pm »
hello, I can see three problems: (I say this as a constructive criticism)

1) configuration files, did not take me .cudatext files / data / reeplazar I had with the Windows version, as of this moment I could select the highlighters

2) The icon is nothing more aesthetic, they are converted to attach your mac icon icns format, so they can use if they want

3) The CPU usage is very high on MacOS, happens when a file that has a selected highlighter

Images attached so that they can see that by reference.

Best regards

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #23 on: August 31, 2015, 09:01:52 pm »
I can't understand ur post, sorry. Only that OSX CPU usage high.
I don't see high cpu usage on 100K file on Linux(can't repeat)

TheWolf

  • New Member
  • *
  • Posts: 26
Re: CudaText Editor (written in Lazarus)
« Reply #24 on: February 06, 2016, 07:51:19 pm »
CudaText is a nice tool. I have discoverd it some days ago and have play a bit with it.

But I have two ideas for features
-A global code theme that not every lexer must modified externely(for example I change comment color in HTML and in CSS it gets the same color) or a option to change it in mulible lexers at once
-and auto close from commands for example I write "<html>" and it close automaticly with "</html>" or I write "begin" and it puts an "end;"
« Last Edit: February 06, 2016, 08:09:25 pm by TheWolf »

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #25 on: February 06, 2016, 08:08:38 pm »
Html autoclose: it is in plan, I make it later. Option "auto close tag". Other wish is not easy doable, with theme of lexer.

TheWolf

  • New Member
  • *
  • Posts: 26
Re: CudaText Editor (written in Lazarus)
« Reply #26 on: February 06, 2016, 08:16:44 pm »
ok thanks (HTML was only an example. I mean autoclose in general)

To the global theme. I have an idea, a parser which paars for example the defined lexers in the lexer file(lib.lxl)
[php] function, Commen, .. and for
[pascal] function, Command, multiline command, ...
that the output in global themes setting menu is
[Global] function, Command, multiline command
and when the save button is pressed, an checklistbox is opening(similar to the lexers checklistbox to aktivate the diferent lexers) with headline "for which lexer would you like to change highlithing settings".
(the languages are only examples)

I would try to implement it myself, and commit it, but my programming skills are to poor to implement it by myself.

I have also tried to compile CudaText myself, but the compiler doesn't found the unit proc_linklabel.pas. Where I can find it.
« Last Edit: February 06, 2016, 11:00:36 pm by TheWolf »

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #27 on: February 06, 2016, 10:42:04 pm »
Very broken english lang.
I dont get it
About compiling, pls at forum...

TheWolf

  • New Member
  • *
  • Posts: 26
Re: CudaText Editor (written in Lazarus)
« Reply #28 on: February 06, 2016, 10:51:14 pm »
I have changed my previus post. I hope you can read it better now.

Alextp

  • Hero Member
  • *****
  • Posts: 902
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #29 on: February 06, 2016, 10:54:25 pm »
@Wolf
1)proc_linklabel.pas was deleted, i delete ref from Proj now
2)Idea isnot OK, since you don't know how lexer styles are saved: need other approach, and only I can make