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: 588
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: 2291
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

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