Recent

Author Topic: CudaText editor (written in Free Pascal)  (Read 43036 times)

440bx

  • Hero Member
  • *****
  • Posts: 6029
Re: CudaText editor (written in Free Pascal)
« Reply #90 on: October 07, 2025, 05:47:21 pm »
@440bx,
I corrected the 1st post header: written in Free Pascal.
Good :) 

You never know, without such corrections we might see TIOBE listing Lazarus as a language and consequently knocking down Pascal a few notches ;)
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1337
  • Professional amateur ;-P
Re: CudaText editor (written in Free Pascal)
« Reply #91 on: January 06, 2026, 07:07:11 pm »
Hey Y'All,

Looks like someone found CudaText: https://levelup.gitconnected.com/cudatext-a-native-vscode-alternative-that-nobody-knows-65d7b84f131f

Sorry it's from Medium...

Cheers,
Gus

AlexTP

  • Hero Member
  • *****
  • Posts: 2669
    • UVviewsoft
Re: CudaText editor (written in Free Pascal)
« Reply #92 on: January 06, 2026, 07:36:39 pm »
Thanks for the link, will read it.
'Nobody knows' - then why Hacker News has posted the CudaText announce 3-4 times?
« Last Edit: January 06, 2026, 07:40:14 pm by AlexTP »

szlbz

  • New Member
  • *
  • Posts: 48
Re: CudaText editor (written in Free Pascal)
« Reply #93 on: January 14, 2026, 01:33:54 am »
If the length of a line exceeds 502 characters (including both Chinese and English), the text will overlap:

再规定整万年都不润(无论是否能被4000整除),恰好可以再减掉5天,十万年内误差少于1天,完美~但是地球公转速度、自转速度的长期趋势都是减慢的,所以回归年的长度会增加,我没查到十万年会改变多少的数据(很可能非常微小)Is it just a rebranded SynEdit component? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features21

The following text is displayed normally when it is 501 characters long:
再规定整万年都不润(无论是否能被4000整除),恰好可以再减掉5天,十万年内误差少于1天,完美~但是地球公转速度、自转速度的长期趋势都是减慢的,所以回归年的长度会增加,我没查到十万年会改变多少的数据(很可能非常微小)Is it just a rebranded SynEdit component? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features2

AlexTP

  • Hero Member
  • *****
  • Posts: 2669
    • UVviewsoft
Re: CudaText editor (written in Free Pascal)
« Reply #94 on: January 14, 2026, 08:51:13 am »
This is because of internal limit: for longer length, program doesn't calculate width of each char in a line, and paints all CJK chars as normal width (100%).

Constant can be changed in the source code.

But.... this const is 1024, not 501.
I checked with CJK text: only after 1024 length (line with CJK and Eng chars), CJK become narrow.

atstringproc.pas
Code: Pascal  [Select][+][-]
  1. const
  2.   //if line is longer - all line chars will be rendered in normal-width (100%) cells
  3.   //so all CJK chars (width 190%) will overlap by design
  4.   cMaxFixedArray = 1024;
  5.  
« Last Edit: January 14, 2026, 09:21:44 am by AlexTP »

szlbz

  • New Member
  • *
  • Posts: 48
Re: CudaText editor (written in Free Pascal)
« Reply #95 on: January 14, 2026, 11:36:38 pm »
Changing 1024 to 2048 and rebuilding will have the same effect。

AlexTP

  • Hero Member
  • *****
  • Posts: 2669
    • UVviewsoft
Re: CudaText editor (written in Free Pascal)
« Reply #96 on: January 15, 2026, 07:57:52 am »
Because you changed wrong var.
You changed ATEditorCharXScale = 1024, but must change  cMaxFixedArray = 1024.

szlbz

  • New Member
  • *
  • Posts: 48
Re: CudaText editor (written in Free Pascal)
« Reply #97 on: January 15, 2026, 02:16:25 pm »
Still the same

AlexTP

  • Hero Member
  • *****
  • Posts: 2669
    • UVviewsoft
Re: CudaText editor (written in Free Pascal)
« Reply #98 on: January 16, 2026, 09:51:32 am »
It may be because you have too old ATSynEdit version and too old CudaText sources. I guess you have too old version because comment near the line

 cMaxFixedArray = 1024;

is different than here.

Also sometimes FPC doesn't recompile ATSynEdit when I compile Cud, so delete the folder atsynedit/lib.
« Last Edit: January 17, 2026, 08:28:45 am by AlexTP »

szlbz

  • New Member
  • *
  • Posts: 48
Re: CudaText editor (written in Free Pascal)
« Reply #99 on: January 17, 2026, 12:01:23 am »
Okay, I'm ready to update to the latest version and give it a try

AlexTP

  • Hero Member
  • *****
  • Posts: 2669
    • UVviewsoft
Re: CudaText editor (written in Free Pascal)
« Reply #100 on: January 17, 2026, 07:46:05 am »
No need to wait; the last version source is published, all code on Github. See this page:
https://wiki.freepascal.org/CudaText#How_to_compile_CudaText
« Last Edit: January 17, 2026, 07:54:45 am by AlexTP »

szlbz

  • New Member
  • *
  • Posts: 48
Re: CudaText editor (written in Free Pascal)
« Reply #101 on: January 17, 2026, 12:52:07 pm »
It has been perfectly resolved, thank you!

andersonscinfo

  • Full Member
  • ***
  • Posts: 156
Re: CudaText editor (written in Free Pascal)
« Reply #102 on: January 17, 2026, 01:57:57 pm »
pra mim tambem funcionou perfeitamente

 

TinyPortal © 2005-2018