General discussion about plugins.

Browse, download and discuss plugins for Blumentals code editors

Re: General discussion about plugins.

Postby pmk65 » Sat Nov 17, 2018 7:11 pm

Im trying to read the contents of "\Program Files (x86)\WeBuilder 2018\data\newdoc.ini" in a plugin, but I have problems reading the sections starting with a "%", like [%types]. Do you need to escape the value in order to read those?

Code: Select all
[%types]
htm
css
js
vbs
php
...

[htm]
Description=HTML
Extension=htm
Template=HTML\Default.htm
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 624
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: General discussion about plugins.

Postby Aivars » Tue Nov 20, 2018 4:43 pm

I don't think the problem is with the section name (%types) but with the fact that the keys have no corresponding values. This is a historic thing and it's somewhat annoying. We read those values using IniFile.ReadSectionValues and I think that method is available for pluginscripts, too.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2328
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Postby LouanneSierra » Wed Apr 03, 2019 1:48 pm

The present usage of TMemo and TRichText doesn't have support for choosing content AFIK. All that I attempted fizzles. Do you have a working precedent on the most proficient method to do this?
LouanneSierra
 
Posts: 1
Joined: Fri Mar 29, 2019 2:48 pm

Re: General discussion about plugins.

Postby pmk65 » Wed Apr 03, 2019 10:53 pm

LouanneSierra wrote:The present usage of TMemo and TRichText doesn't have support for choosing content AFIK. All that I attempted fizzles. Do you have a working precedent on the most proficient method to do this?


TRichText.Lines.Text will return the content of TRichText. Same should work for TMemo.

But try posting an example of what you are doing so far and an explanation of what you are trying to attempt.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 624
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Previous

Return to Plugins for HTMLPad / Rapid CSS / Rapid PHP / WeBuilder

Who is online

Users browsing this forum: No registered users and 1 guest

cron