-
Hi! First of all i want to thank you a lot for this great, simple-to-use and really quick-working highlighter!
But I have a problem with "ini" highlighting... I have INI language in my package and this code:
Unfortunately the INI code isn't highlighted...<pre><code class="ini">; comment
id = 1;
question = "How are you?";
answers[] = "Great!";
answers[] = "Not very well...";
delay = 86400;</code></pre>
Tested in IE 8.0, FF 3.5, Opera 9.64, Google Chrome 2.0 with no success.
Do you know where's the problem? Thanks! -
Hi!
The problem is those "[]" in "answers[]". A setting name in .ini is defined to consist only of letters. Which is most likely just a mistake of not having enough test cases from the start. I think I'll update it to contain also numbers, underscores and square brakets (though admittedly I've never seen an .ini file with square brakets in setting names :-) ). It'll be in the next release.
-
Oh, thanks a lot, that would be lovely (I thought that the problem). Square brackets and underscores can you see in setting names for example in php.ini (setting with "[]" at the end of its name results in an array).
-
I'm sorry for that bad information: in php.ini there aren't any settings with name containing square brackets, but if you see the documentation of the php function parse_ini_file, there are few examples, where the square brackets are used...
-
I see. Thanks for this example!
-
I've just uploaded a new version 5.5 which should fix your case. Enjoy!
-
It works! Thank you so much!
Внимание! Это довольно старый топик, посты в него не попадут в новые, и их никто не увидит. Пишите пост, если хотите просто дополнить топик, а чтобы задать новый вопрос — начните новый.
