help with Gedit
I got this text editor Gedit and I really like it. The one thing I wish it had though was the ability to view the html as it would appear in a browser. (A feature which Notepadd++ had.) Anybody know how I might be able to get that (via a plug-in or whatever). And if not, what's a good way of 'selecting all' in Gedit and then copying and pasting the html somewhere so I can see it as if it were in a browser). Thanks so much.
|
r-click and click on "select all" and then copy
or should be < control > + < a > |
sorry
Quote:
|
(Why not...) Simply open the saved file in your browser of choice.
|
2 Attachment(s)
Quote:
|
That is a character encoding issue. From the looks of it I would say probably results from the dumb idea "smart-quotes" (Apple or M$ term I think) being turned on, a common problem. Instead of using an ASCII or UTF8 equivalent apostrophe, it is using another unicode character that displays as the goop. The same will happen with single and double quotes. When used in HTML format it causes many problems (for example when used to quote attribute values).
You can probably simply set/change the character encoding in the browser, but that does not fix it for others who might open it in their own browser with different settings. The "smart" choice is always to realize that HTML is not bit-for-bit compatible with non-web document formats and encodings, and disable smart-quotes in the editor. I don't really know where gedit might do that, but it should be easy enough to find. *** UPDATE *** It is also possible that you copy/pasted the text from a word or apple doocument, in which case the smart quotes came from outside gedit. I think Wordpress also has the annoying habit of converting simple quotes to dumb-quotes. In that case you may need to find/replace the offending characters in gedit or using a sed type script. |
Standard static html is very easy to just " visualize "
and back in 2000 MS's "Notepade.exe" was all that was needed for that now if one starts adding in php and javascript and a database then the only "real" way to "look" at the code is in a running Apache server and a web browser |
Quote:
P.S. Read "Wolf Solent" by Cowper a couple of months ago. Really enjoyed it. |
Bluefish is an editor intended for html and other code: that has an option in the menu to display in a browser.
|
2 Attachment(s)
Quote:
|
I'm not a web-site creator, but I think that Bluefish and Weblint should do fine. Weblint is produced by the World Wide Web Consortium, so it gives you official validation.
|
Quote:
|
All times are GMT -5. The time now is 06:41 PM. |