upscope wrote:
On Wednesday, December 21, 2011 07:25:38 PM Jens Hatlak wrote:
Philip TAYLOR wrote:
David E. Ross wrote:
I put the following into my user.js file in my profile:
user_pref("browser.bookmarks.autoExportHTML", true);
// automatically export bookmarks into an HTML file
The first line is what does it; don't forget the semi-colon (;)
at the end of the line.

Why does it need a semi-colon at the end of the line if the
language is JavaScript ?

Because it's not actually a random JS file (...)
>
You sure the ; is not needed by the sqlite database. If the export goes
to the database and creates the html from it, sql statements(command
line) usually end in ; at least on MySQL they do.

I don't know what you're talking about. David, Philip and me were talking about the syntax of prefs.ps. That discussion is not at all related to bookmarks, places.sqlite, or import/export thereof. I just mentioned bookmarks.html as an additional example of a file that is written by a machine but still somewhat human-readable.

That said, a semicolon in SQL is only needed if you have more than one query (i.e. as a separator) or the client requires it (like the command line mysql client in interactive mode). As far as Mozilla-based software is concerned, I don't know of any part of a shipped product that imports or exports SQL. SQL (and SQLite) is only used internally (for Places, mostly).

HTH

Jens

--
Jens Hatlak <http://jens.hatlak.de/>
SeaMonkey Trunk Tracker <http://smtt.blogspot.com/>
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to