[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pressing Space creates a newline and indents my code
From: |
Barry Margolin |
Subject: |
Re: Pressing Space creates a newline and indents my code |
Date: |
Thu, 15 May 2008 22:51:20 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b2 (Intel Mac OS X) |
In article
<bd6a6188-240c-4fae-b0a0-81d40afb4662@q1g2000prf.googlegroups.com>,
bsteinex <brent.steiner@gmail.com> wrote:
> Hello,
>
> I'm using Emacs 22.2.1. It's been a while since I've used Emacs.
>
> Here's my problem. While working on Javascript I find that if I have a
> long line of code, and press the <space> bar, the code gets cut and
> placed on a new line, thus invalidating my code.
It's not invalid to have newlines in a SCRIPT tag.
>
> Ex: While adding code #1 I pressed <space> just before </script>. The
> code changed to code #2
>
> #1 - <script language="JavaScript" src="http://www.example.com/js/
> ntpagetag.js"></script>
>
> #2 - <script language="JavaScript"
> src="http://www.example.com/js/ntpagetag.js"> </script>
>
> Any ideas on how I can stop this from happening? Thank you for your
> help.
Turn off auto-fill.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***