formatting

thousand separator with C#

If you want to output numbers with thousand separators, this can lead to unpleasant effects in multilingual systems. For example, if the data is in “German” format, but the system is set to English, a misinterpretation can occur here, and the double value 110,045 is suddenly displayed or processed as 110045. (the decimal point is then simply interpreted as a separator and makes a few thousand instead of a few hundred).

Continue reading…

Use code snippets in Microsoft Word

If you like to write your developer documentation in Word documents, you will surely want to write code snippets for examples away more often. Copy and paste from the development environment usually works quite well, syntax highlighting remains the same.

The only bad thing is that Microsoft quickly starts to rampage in formatting, especially when cross-document formatting is applied.

Continue reading…