Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
ATSynEdit loadFromFile
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
MVP made easier.
by
cdbc
[
Today
at 05:14:40 pm]
Lazarus is not working
by
Fred vS
[
Today
at 05:14:20 pm]
Changing Enable on items ...
by
jamie
[
Today
at 05:13:01 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[
Today
at 04:52:18 pm]
Recomendations for conver...
by
BlueIcaro
[
Today
at 04:44:57 pm]
Running External Tools
by
JuhaManninen
[
Today
at 04:08:28 pm]
Why does the call via fun...
by
jamie
[
Today
at 03:19:59 pm]
The start of yet another ...
by
TBMan
[
Today
at 03:16:21 pm]
Error: Enumeration symbol...
by
440bx
[
Today
at 02:58:58 pm]
Need help with Runcommand...
by
marcov
[
Today
at 12:46:25 pm]
Military Grade Directives
by
Thaddy
[
Today
at 11:46:44 am]
Cannot find Online Packag...
by
Thaddy
[
Today
at 11:37:58 am]
Anyone interested in help...
by
ad1mt
[
Today
at 08:56:20 am]
Hashing pointers by using...
by
440bx
[
Today
at 03:16:33 am]
exception external SIGSEG...
by
dseligo
[
Today
at 02:24:28 am]
[SOLVED] Is this a compil...
by
jamie
[
Today
at 01:46:54 am]
Problem installing LazPro...
by
peter.dell
[
Today
at 01:32:53 am]
AI interactions
by
Joanna
[December 13, 2025, 11:47:24 pm]
project - count source li...
by
bobonwhidbey
[December 13, 2025, 10:30:31 pm]
FPC 3.2.4-rc1 available
by
PeterBB
[December 13, 2025, 08:31:32 pm]
fpsockets error: 10047
by
parcel
[December 13, 2025, 04:03:56 pm]
So many "newbies"
by
Joanna
[December 13, 2025, 02:52:06 pm]
Is it possible to run "mo...
by
Thausand
[December 13, 2025, 02:42:56 pm]
TLazSerial : serial port ...
by
CM630
[December 13, 2025, 02:20:24 pm]
connecting to mariadb
by
alanyoung
[December 13, 2025, 01:27:11 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: ATSynEdit loadFromFile (Read 860 times)
polpero
Full Member
Posts: 127
ATSynEdit loadFromFile
«
on:
July 26, 2023, 10:29:24 pm »
Hi.
It seems that ATSynEdit.loadFromFile now requires 2 parameters?
could someone explain the TATLoadStreamOption ?
and how to use it?
thanks
Logged
AlexTP
Hero Member
Posts: 2654
Re: ATSynEdit loadFromFile
«
Reply #1 on:
September 15, 2025, 04:11:27 pm »
I overlooked that post.
Second parameter is of set-type:
Code: Pascal
[Select]
[+]
[-]
TATLoadStreamOption
=
(
FromUTF8
,
AllowBadCharsOfLen1
,
KeepScroll
)
;
TATLoadStreamOptions
=
set
of
TATLoadStreamOption
;
Members:
- FromUTF8: stream must be UTF8-encoded, load it faster.
- AllowBadCharsOfLen1: ignore invalid UTF8 sequences of length=1.
- KeepScroll: restore scrolling pos in editor after file loaded.
Added these comments:
https://github.com/Alexey-T/ATSynEdit/commit/c75688dc9b1745e22612fe61eb56a8add0acb2f1
«
Last Edit: September 15, 2025, 04:18:34 pm by AlexTP
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
ATSynEdit loadFromFile
TinyPortal
© 2005-2018