Friday, 24 August 2012

USES OF NOTEPAD
1. Notepad as your Digital Diary You can use Notepad as digital diary and automatically insert date time information for every line you type in notepad. Open a new notepad file (Click Start > Run, type Notepad and hit OK) and type .LOG at the top of the notepad file.

2. Notepad as HTML Stripper:  Ideally text on webpages is formatted for specific font type, color, size along with other CSS design elements and images. You can rip off text only from any webpage using notepad. Just select and copy text from any webpage and paste in a notepad file which can be saved (without any formatting baggage) for future use.

3. Notepad as Printing cost saver : Notepad can come handy when you are printing text laden pages in large quantity. Extending the concept of using Notepad as HTML stripper, you can strip webpages of additional formatting and image using notepad and print more with less usage of ink, paper and money (of course).

4. Save Your Documents as .htm
The challenge of using Notepad for writing HTML is that it automatically defaults to the .txt extension. This means that even if you add the extension .htm to your file name, Notepad will append a .txt to the end.
Then, when you test your files in a browser, the browser thinks it's a text file and shows all the HTML tags, rather than the web design. Also, if you link to that page, when you test that link it will be broken, because you linked to the filename.htm file name, which doesn't exist. The file is called filename.htm.txt.
To fix this, you can simply remove the .txt extension from the end of the file name. Windows may prompt you that you're changing the extension and so changing the type of the file. If it does, simply agree so that it uses the new .htm extension.
To prevent it from adding the .txt extension, you must change the “Save As Type” to “All Files” and including the extension .htm manually.

Notepad Can Be Problematic for Editing PHP

While it is possible to edit PHP in Notepad just like any other web page, it can cause problems. While Notepad is an ASCII text editor, it can have hidden characters embedded in the code that can cause problems with PHP. This happens if you hit the control or alt key and some character strings. While you can't see the characters in Notepad, they are still in the PHP file.

No comments:

Post a Comment