I want to preview .js, .php, and other file extensions as text in explorer on Windows 7.
Any ideas on how I can accomplish this?
Answer
On top of using PreviewConfig, you will also have to add entries into the registry to get it working on Windows 7.
Open the registry editor (regedit in the start menu search) and navigate to
computer\HKEY_CLASSES_ROOT\.FILE_EXT, whereFILE_EXTis the extension you want to add, such as.nfo
Make 2 new string values (
REG_SZ) under the file extension's key, Content Type and PerceivedType
Set the value of
Content Typeto text/plain andPerceivedTypeto text.
No comments:
Post a Comment