Top "Format" questions

It may refer to text formatting, content format, file format, document file format, etc.

PHP "pretty print" HTML (not Tidy)

I'm using the DOM extension in PHP to build some HTML documents, and I want the output to be formatted …

php html format tidy
PHP : strtotime() returns always 01/01/1970

I am trying to display dates in the European format (dd/mm/yyyy) with strtotime but it always returns 01/01/1970. Here …

php date format strtotime
Format Curly Braces on Same Line in C++ VSCode

I'm using the C++ Extension for VSCode (Visual Studio Code). Currently, I have the setting "C_Cpp.clang_format_formatOnSave" …

c++ format visual-studio-code curly-braces
JavaScript format number to day with always 3 digits

Possible Duplicate: How can I create a Zerofilled value using JavaScript? I have to output a day number that must …

javascript numbers format digits days
Boolean to string with lowercase

Can the str.format() method print boolean arguments without capitalized strings? I cannot use str(myVar).lower() as argument of …

python string format boolean lowercase
How to format the value in a strongy typed view when using ASP.Net MVC's Html.TextBoxFor

I am trying to format a date rendered by ASP.Net MVC's TextBoxFor using the value of a strongly typed …

asp.net-mvc format html-helper
How to circumvent format-truncation warning in GCC?

I'm getting the following gcc format-truncation warning: test.c:8:33: warning: ‘/input’ directive output may be truncated writing 6 bytes into a …

c gcc format gcc-warning
Formatting MVC model TimeSpan field

I have a MVC page containing a few timepickers. These are stored in a list of objects in the model …

asp.net-mvc format timespan
Formatting MAC address in C#

In my C# application, I want to get my MAC address by using NetworkInterface class as the following: NetworkInterface nic …

c# string format mac-address
How to avoid a Broken Pipe error when printing a large amount of formatted data?

I am trying to print a list of tuples formatted in my stdout. For this, I use the str.format …

python format string-formatting ioerror broken-pipe