Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luwey/textcontainer
A TMS Web Core component for saving multi-line text in YAML, JSON, INI and plain text format
https://github.com/luwey/textcontainer
component delphi ini ini-parser json json-parser tms-web-core yaml yaml-parser
Last synced: 2 months ago
JSON representation
A TMS Web Core component for saving multi-line text in YAML, JSON, INI and plain text format
- Host: GitHub
- URL: https://github.com/luwey/textcontainer
- Owner: LuWey
- Created: 2024-09-09T23:49:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T16:39:40.000Z (3 months ago)
- Last Synced: 2024-10-15T17:38:21.957Z (2 months ago)
- Topics: component, delphi, ini, ini-parser, json, json-parser, tms-web-core, yaml, yaml-parser
- Language: Pascal
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ![grafik](https://github.com/user-attachments/assets/500b8915-dc8a-43e6-83f9-913f35d7f260) TextContainer
### A TMS Web Core component for saving multi-line text in various formats
This component offers the possibility to save long multi-line text strings. The saved text can be interpreted as YAML, JSON or INI.
The component is particularly useful for multi-line texts that would otherwise have to be written directly into the code using the cumbersome multi-line string constant '...'+ notation.
Usually, the text stored in such a component at design time contains some kind of configuration data. These parameters are often formatted as JSON, YAML or INI text.
The component provides properties and functions for processing and converting between these formats. In addition, a TJSValue/Object/Array can be created directly from the component.
The package comes with 2 library units that can also be useful for other purposes. One unit handles the INI data format and the other handles and converts the JSON/YAML data format. Since TMS Web Core does not natively support YAML and INI processing, these units may be useful.
Special function for design time:
----------------------------The preferred method to open the text editor dialog at design time is to simply double-click or right-click on the component icon. Once opened, the user can resize the edit dialog to get a better view of the text entered. When the window is closed, the dimensions of the resized editor dialog are saved permanently and the next time the text editor is opened, the previous dimensions are restored.