Click here to Skip to main content
15,904,416 members
Everything / Formating

Formating

formatting

Great Reads

by Athari
CsConsoleFormat library for .NET - Formatting in Console using modern technologies
by Mark Pelf
Beginner’s tutorial on PE format, with illustrations
by wborgsm
How to draw muliline formatted text on a System.Drawing.Graphics object.
by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.

Latest Articles

by Mark Pelf
Beginner’s tutorial on PE format, with illustrations
by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
by Athari
CsConsoleFormat library for .NET - Formatting in Console using modern technologies

All Articles

Sort by Score

Formating 

3 Aug 2021 by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
2 Feb 2011 by M@dHatter
PHP Magic String Builder with Append Format.
9 Jul 2012 by Matt T Heffron
This is an alternative for "Custom String FormatWith using Reflection"
16 May 2013 by Shweta Lodha
Some tips on Windows Phone Apps
7 Feb 2011 by Fatih P.
Here is the one i wrote sometime ago/* ---------------------------------------------------------------------------- * Teknober.com - All rights reserved * ---------------------------------------------------------------------------- * File Name : TStringBuilder.php * Section ...
14 Jun 2011 by Steve Roberson
This version treats the input string as an indexed string. The code is a little shorter.private string createDisplayText(string propertyName){ if (String.IsNullOrEmpty(propertyName)) { return String.Empty; } StringBuilder builder = new StringBuilder(); ...
13 Nov 2013 by Debopam Pal
8 Jun 2011 by kiswa00
Why not take care of the first character before the loop, instead of checking it every time (not that it makes a big difference on modern hardware)? This also moves the char declaration out of the loop.private string createDisplayText(string propertyName){ if...
5 Apr 2013 by bEGI23
Convert filesize (bytes) according to highest possible size scale (KB, MB, GB, TB, PB).
29 Jun 2015 by jindrich.babica
Binding with respect to CurrentCulture
17 Jan 2011 by Maxim Fedotov
Presents StringFormat methods with string (not integer) keys in 'format' string.
23 Oct 2021 by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
10 Feb 2016 by Kouji Matsui
This library is simple and is a substitution of System.String.Format.
5 Jul 2012 by Sumit Chawla
Custom String FormatWith using Reflection
3 Sep 2013 by Ahmed_Mostafa
This is a useful tip for formatting numbers in C#.
21 Jan 2015 by Bhis
Read XML File and change date contents
8 Jun 2011 by Ben Kotvis
Pascal and Camel Case to display text conversion
22 Oct 2010 by TweakBird
Common Mistakes Made by Programmers
12 Dec 2012 by Pranay Rana
Convert DateTime string to DateTime variable