FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/Prettyprint#Programming_code_formatting

Pretty-printing

Contents
See also
References
External links

Pretty-printing (or prettyprinting) is the application of any of various stylistic formatting conventions to text files, such as source code, markup, and similar kinds of content. These formatting conventions may entail adhering to an indentation style, using different color and typeface to highlight syntactic elements of source code, or adjusting size, to make the content easier for people to read, and understand. Pretty-printers for source code are sometimes called code formatters or beautifiers.

x ^ 2 + 3 * x</samp>\""}},"i":0}}]}'>"x ^ 2 + 3 * x" as int foo(intk){ if(k<1||k>2){ printf("out of range\n"); printf("this function requires a value of 1 or 2\n"); }else{ printf("Switching\n"); switch(k){ case1: printf("1\n"); break; case2: printf("2\n"); break; } } }

See also

edit

Related concepts

Utilities

References

edit
Stallman, Richard M. "Indentation for Programs". GNU Emacs Manual. Free Software Foundation. Retrieved 2011-10-20.
  • ↑ Ira Goldstein, "Pretty Printing : Converting List to Linear Structure", Artificial Intelligence Memo 279, Massachusetts Institute of Technology, February 1973. full text
  • ↑ Richard C. Waters, "Using the new common Lisp pretty printer", ACM SIGPLAN Lisp Pointers 5:2:27-34, April–June 1992. full text
  • ↑ Jargon File, s.v. grind
  • ↑ GNU style
  • ↑ BSD style
  • External links

    edit

    View original on Wikipedia | Back | FazBrowse Home