I wanted to create a website where I can view some types of FancyBox files, such as images, text documents, etc.
Performing this action:
$(".text").fancybox(); <a class="text" href="document.css" title="document.css"><img src="files.png"/>OPEN ME</a>
It opens a document, but it does not respect the fields and format of the document, I mean that everything is written on one line, so I assume that it will open it as if it were HTML, and not as a text editor.
So does anyone, how to open it, for example, in Notepad ++ or GEdit, open it?
Thanks!
source share