Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language option should I use in Notepad++ with my windows host file for readability?

Maybe this is a silly question, but today I was working in my hosts file (C:\windows\system32\drivers\hosts) in notepad++ and would like to use the language formatting.

For example, the first line appears to be a comment

# Copyright (c) 1993-1999 Microsoft Corp.

What language do I choose to view the file?

like image 819
Josiah Ruddell Avatar asked Jan 05 '11 20:01

Josiah Ruddell


1 Answers

The hosts file is not written in any programming language. It's simply plain text in a format easily parseable by certain system and network applications. Besides, anyone can come up with a parser that treats text delimited by # as comment lines.

(And in case you didn't get the hint, choose the option that I highlighted in bold.)

like image 77
BoltClock Avatar answered Nov 04 '22 00:11

BoltClock