1

When editing an INI file, if I put an inline comment at the end of a declaration then the color of that comment is not the same as the color of the normal comment below. How can I make them the same?

NotepadPlusPlus Example

3

it's an inner-program issue. changing comment color wont help you. cause it doesn't detect your code as comment to colorize. and it can considered as a bug. report it to Notepad++ developers to fix.

  • 1
    Whether it's a bug will vary – many programs use ini-style configuration, but very few of them support inline comments. – user1686 Jan 5 '15 at 13:06
  • my sublime text doesn't have bug like that – Mana dmg Jan 5 '15 at 13:21
  • @Manadmg it doesn't have bug cause you used all the line to comment. not part of it.(Actually your first character is ; and program knows just these kind of comments and colorized it) – Sdghasemi Jan 5 '15 at 15:52
0

The colorization is actually more correct this way. There is no actual "end of line" comments in ini files. If you request the value for the key "fight" through the native API, you will receive "fight.def;Fight definition filename". Your own API wrapper might then go ahead and remove the comment part, because it knows there are no semicolon characters allowed in your ini file values, but as per Windows API, the semicolon and all trailing characters still belong to the value.

  • please no excuses, are u notepad++ developers? where is the source on your statement? show me the source – Mana dmg Oct 30 '16 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.