when i write a string with a comment on the right the monodevelop replace the underscore for a space, for example this line(on c#, i haven’t tried on javascript):
string str = “This_is_a_string”; //A string
the monodevelop shows this:
string str = “This is a string”; //A string
The string is saved correctly just the displaying of the string in the monodevelop is changed, at first i was confused but i want to know why is this happening?
Edit: this the 1 that shows the problem
change to another syntax highlighting scheme ( i changed to Brown)
Tools>Options>Syntax Highlighting>Brown
Then underscores appear, doesn’t look to different from Default so will be OK until another unity upgrade.
I had the same issue, and as described on my blog there are 2 ways to fix it. You can either do it by changing the font size or syntax highlighting theme.
I had this problem with my custom syntax coloring and managed to fix it by making sure to uncheck “italics” for the thing it was being applied to.
I’m seeing this too with a new install of Unity3.5. It’s apparently a documented bug (fixed in the latest version of MonoDevelop)
Not sure what good that does us though, I’m not readily finding a way to manually update to the latest version of MonoDevelop so that it can still be used with Unity.
I’m seeing this too, and apparently it is a documented bug, fixed in the latest version of MonoDevelop.
Not sure if this knowledge does us any good, until there’s a clean way to upgrade MonoDevelop while still maintaining usability with Unity.
Still happening here, using Monodevelop 2.8.2 (and Unity 4.1.5.f1). The underscore is still actually there, it is just displayed as a space character (I tested this by copy-pasting, and it pastes into another line as an underscore).
It does just seem to be an error with the default syntax highlighting style as noted above, as the underscores appear properly in the other styles.