Im making (yet another) plugin, which should only work on CSS,SASS & LESS files.
So I check if Document.DocType matches the constants: dtCSS, dtSass, dtLess.
And here' a problem:
SASS files (.scss) doesn't match "dtSass" (20), but instead matches "dtApache" (19)
LESS files (.less) doesn't match "dtLess" (21), but instead matches "dtSass" (20)
CSS files (.css) match "dtCss" (3) without problems.
Program used: WeBuilder 2015 v13.2.0.164
Bug: Wrong filetype constants in plugin
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Bug: Wrong filetype constants in plugin
There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Bug: Wrong filetype constants in plugin
Thanks for the report. You can use the numbers for now...
dtDefault = 0;
dtHTML = 1;
dtXML = 2;
dtCSS = 3;
dtJScript = 4;
dtVBScript = 5;
dtPerl = 6;
dtText = 7;
dtWML = 8;
dtPHP = 9;
dtASP = 10;
dtSQL = 11;
dtRuby = 12;
dtERuby = 13;
dtASPX = 14;
dtCS = 15;
dtSmarty = 16;
dtPython = 17;
dtApache = 18;
dtSass = 19;
dtLess = 20;
dtTwig = 21;
We will fix it. All constants up to dtSmarty are correct.
dtDefault = 0;
dtHTML = 1;
dtXML = 2;
dtCSS = 3;
dtJScript = 4;
dtVBScript = 5;
dtPerl = 6;
dtText = 7;
dtWML = 8;
dtPHP = 9;
dtASP = 10;
dtSQL = 11;
dtRuby = 12;
dtERuby = 13;
dtASPX = 14;
dtCS = 15;
dtSmarty = 16;
dtPython = 17;
dtApache = 18;
dtSass = 19;
dtLess = 20;
dtTwig = 21;
We will fix it. All constants up to dtSmarty are correct.
Blumentals Software Programmer