Send Notepad-plus-plus mailing list submissions to
        notepad-plus-plus@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Notepad-plus-plus digest..."


Today's Topics:

   1. [notepad-plus - Open Discussion] Javascript       Continuation
      Character Styling (SourceForge.net)


----------------------------------------------------------------------

Message: 1
Date: Sat, 29 Dec 2007 10:49:08 -0800
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion]
        Javascript      Continuation Character Styling
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4694617
By: deemerrick

Hello!

When you use the Javascript line continuation character \ to end a line so it
is combined with the next into a single line, if this is done in the midst of
a string then instead of the next line being styled as part of a string, it
is treated to a standard syntax styling and there are sometimes knock-on effects
when the string does close.
A quick test seems to suggest this occurs when Javascript is used in a PHP and
HTML styled page environment but not in a pure Javascript style page.

For example choose a PHP styler and paste this as a document:

<script language='JavaScript' type="text/javascript">
document.write("hello this \
is the world");
</script>

If you change the language to Javascript you'll see it now gets it right.

Many thanks indeed to all,

david

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------

_______________________________________________
Notepad-plus-plus mailing list
Notepad-plus-plus@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus


End of Notepad-plus-plus Digest, Vol 19, Issue 77
*************************************************

Reply via email to