Monday, 11 September 2017

Windows 7 - Preview other file types as text in Preview Pane


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, where FILE_EXT is the extension you want to add, such as .nfo


    enter image description here




  • Make 2 new string values (REG_SZ) under the file extension's key, Content Type and PerceivedType


    enter image description here




  • Set the value of Content Type to text/plain and PerceivedType to text.





No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...