The listings package extends LaTeX's verbatim features. A variety of syntax highlighting options are available.
For general questions about verbatim or highlighting use the respective tag.
For the unrelated concept of list structures, use lists or the tag corresponding to a specific list structure (e.g. itemize, enumerate or description) instead.