How can I stop Dreamweaver spoiling my code layout?

For example, if I have:
<div class="Something">
<some other stuff>
</div>
Then if I save the file and close and reopen it again, I
sometimes find
Dreamweaver has changed it to:
<div class="Something">
<some other stuff></div>
Which IMO is far less readable.
Also, if I paste the following nicely formatted code from one
document to
another:
<p class="whatever">
Some text
</p>
<p class="whatever">
Some text
</p>
Then if I paste it into another document and save,
Dreamweaver sometimes
changes it to:
<p class="whatever">Some text</p>
<p class="whatever">Some text</p>
Which again, if there's a lot of text, I find far less
readable.
How can I stop it from interfering with my code in this way?
I looked under
Preferences, but couldn't see any obvious setting.
Dave

That's very helpful, thanks - but what does it mean by
"Formatted but not
indented" and "Not Formatted"? They both look identical in
the preview
window.
The other problem is that I don't use consistent rules - or
rather, I do,
but my rules are far more complicated and context sensitive
than the
Dreamweaver ones. For instance, in general, I have two line
breaks after a
</p> tag, but not always - and in any case,
Dreamweaver's rules don't
appear to allow for two line breaks before or after any tag.
Dave
"slinkmaster" <[email protected]> wrote in
message
news:g09o6t$kr9$[email protected]..
| I've run into it a few times, never could figure out why it
did it when I
| saved. But to correct the formatting so that it is more
readable for you.
Go to
| Edit -> Preferences -> Code Format. Click on the "Tag
Libraries..."
button.
| Locate the tags in the list that you want to edit the
formatting for and
make
| it look how you want.
|

Similar Messages

  • How can I stop Dreamweaver from inserting spaces after variables?

    How can I stop Dreamweaver from inserting spaces after
    variables?
    Example:
    "...write to you@<!--#echo var="uu" --> and ..."
    is changed by DreamWeaver to
    "...write to you@
    <!--#echo var="uu" -->
    and...>
    When saving or doing other editing, DreamWeaver adds a space
    and a line break before and after the variable. The line break
    isn't hard and doesn't show, but the spaces added before and after
    the variable DO show in browsers. That looks rather stupid and
    incompetent, and requires hand editing on the server after
    uploading.
    Line wrap and code formatting are turned off.
    Is manual correction after uploading the only solution to
    this problem?
    Thanks
    DearWebby

    DearWebby,
    We already discussed this offline, but I want to post the fix
    here for
    the sake of posterity:
    1. Edit > Tag Libraries…
    2. Open HTML Tags folder
    3. Select "directive" folder icon (not really a folder)
    4. Change Line breaks: setting to "No line breaks"
    5. Click OK
    HTH,
    Randy
    > How can I stop Dreamweaver from inserting spaces after
    variables?
    >
    > Example:
    > "...write to you@<!--#echo var="uu" --> and ..."
    > is changed by DreamWeaver to
    > "...write to you@
    > <!--#echo var="uu" -->
    > and...>
    >
    > When saving or doing other editing, DreamWeaver adds a
    space and a line break
    > before and after the variable. The line break isn't hard
    and doesn't show, but
    > the spaces added before and after the variable DO show
    in browsers. That looks
    > rather stupid and incompetent, and requires hand editing
    on the server after
    > uploading.
    >
    > Line wrap and code formatting are turned off.

  • How can i stop user to get the same screen while entering same T code

    hi experts,
    how can i stop user to get the same screen while entering same T code (_Means i want user enter same t code but got different different screen how it is possible.)_
    i want to know how can we set a authorization is such a manner ...
    Through different different login id user got different different screen while entering same T-code.
    for example if there is two functional login id mum & noida...
    then user login through that and
    enter any same functional tcode (for getting purchase order)
    but get different different window...so how come it is possible.....
    plz explain in brief
    thanks in advance...plz do reply as soon as possible

    For a custom transaction this is easy, you need to ask your developers to be able to direct users to different screens based on the results of an authorisation check.  You could have an auth field e.g. ZSCREEN which is checked in the program & decides what screen the user has access to.
    For standard transactions, unless already coded, I would forget it & do what is recommended by Subramaniam and create transaction variants as required.  Assign each variant to a custom t-code and users access it that way.
    What I am interested is is why do you want to do this?

  • What is org.postfix.master and how can I stop it? Do I want to?

    Hi All,
    I have this going on in console every 10 seconds, endlessly:
    18/07/2011 18:20:41          com.apple.launchd[1]          (org.postfix.master[313]) Exited with exit code: 1
    18/07/2011 18:20:41          com.apple.launchd[1]          (org.postfix.master) Throttling respawn: Will start in 9 seconds
    18/07/2011 18:20:51          com.apple.launchd[1]          (org.postfix.master[314]) Exited with exit code: 1
    18/07/2011 18:20:51          com.apple.launchd[1]          (org.postfix.master) Throttling respawn: Will start in 9 seconds
    18/07/2011 18:21:01          com.apple.launchd[1]          (org.postfix.master[315]) Exited with exit code: 1
    18/07/2011 18:21:01          com.apple.launchd[1]          (org.postfix.master) Throttling respawn: Will start in 9 seconds
    18/07/2011 18:21:11          com.apple.launchd[1]          (org.postfix.master[316]) Exited with exit code: 1
    18/07/2011 18:21:11          com.apple.launchd[1]          (org.postfix.master) Throttling respawn: Will start in 9 seconds
    I don't know why but my instinct says this should not be happening.
    Can someone please tell me:
    1. do i need this? if so, what is it?
    2. if not, how can i stop it?
    Thanks!

    here you go:
    Jul 18 22:24:28 marks-macbook postfix/master[335]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:24:38 marks-macbook postfix/master[336]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:24:48 marks-macbook postfix/master[337]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:24:58 marks-macbook postfix/master[339]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:08 marks-macbook postfix/master[340]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:18 marks-macbook postfix/master[341]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:28 marks-macbook postfix/master[342]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:38 marks-macbook postfix/master[347]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:48 marks-macbook postfix/master[351]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:25:58 marks-macbook postfix/master[354]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:08 marks-macbook postfix/master[355]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:18 marks-macbook postfix/master[357]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:28 marks-macbook postfix/master[358]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:38 marks-macbook postfix/master[361]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:48 marks-macbook postfix/master[363]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:26:58 marks-macbook postfix/master[364]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:27:08 marks-macbook postfix/master[366]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 18 22:27:18 marks-macbook postfix/master[367]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    I guess the gist of it is, somehow my user does not have permission to open some file. Strange since I own the thing...
    Any ideas?

  • How can I stop a JFrame from closing when clicking the close button.

    I need to display a dialog when a user attempts to close my app, giving them the option to close, minimize or cancel. How can I stop the form from closing after the user makes his selection? I have the folllowing code, but my form still closes after selecting an option:
    private void formWindowClosing(java.awt.event.WindowEvent evt) {                                  
            //An array of Strings to be used a buttons in a JOptionDialog
            String[] options = {"Close", "Minimize", "Cancel"};
            //Determines what the user wants to do
            int result = JOptionPane.showOptionDialog(null, "What to you want to do?  Close the application, minimize or cancel?", "Please select an option...", 0, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
           //Determines what to do, depending on the user's choice
            if (result == 0) {
                //Close the application
                System.exit(0);
            } else if (result == 1) {
                //Minimize the application
                this.setState(Frame.ICONIFIED);
        }Any help would be much appreciated!

    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame {
         public static void main( String[] args ) {
              new test();
         public test() {
              setSize( 200, 200 );
              //the next line makes the JFrame not close
              setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
              //now add a listener that does the trick
              addWindowListener( new WindowAdapter() {
                        public void windowClosing( WindowEvent e ) {
                             //ask the user and do whatever you wish
              setVisible( true );
    }

  • Internet explorer warns about my applet, how can I stop it?

    I get the warning "To help protect your security, Internet Explorer has restricted this web page from running scripts or ActiveX controls ..." when running the applet whose code is included below. How can I stop the warning from appearing, it is annoying?
    * @(#)*****.java
    * ******* Applet application
    * @author
    * @version 1.00 2008/2/10
    import java.awt.*;
    import java.applet.*;
    import javax.swing.*;
    public class ****** extends JApplet implements Runnable {
         static int red=0,green=100,blue=0;
         public void init() {
         public void start()
              Thread th = new Thread(this);
              th.start();
         public void run()
              for(int i=1;i<=5;i++)
                   red=i*10;
                   blue=i*8;
                   green=i*15;
                   try{
                        Thread.sleep (200);
                   catch(Exception ex)
                   repaint();
         public void paint(Graphics g) {
              Color hej = new Color(red,green,blue);
              g.drawString("Welcome to Java!!! ", 50, 60 );
    //          setColor(hej.getBlue());
              g.setColor (hej);
              g.fillOval(100,100,500,400);
    }

    You can probably alter your Internet Explorer browser settings by going to the menu <tools><internet options><security> and change one or more of the settings. Be careful about decreasing your security too much. Also, dont expect end-users to lower thier security settings to run your code.

  • How do I stop Dreamweaver from automatically adding P Tags on Enter?

    How can I change Dreamweaver CS5 preferences so that it doesn't automattically add <p> tags when I hit "Enter"? And please don't tell me <p> tags are important and I should just style them differently with CSS.

    >>>No need to switch to Notepad ++ or any other text editors.
    Like I said, I didn't want to get into a discussion of the merits of Dreamweaver Code view versus NotePad++. I like them both for different reasons, and use both on a regular basis. Though Notepad++ is a lot more customisable.
    I guess Nancy's answer was the one that I was looking for -- "Nope".
    Although dissapointed and suprised that Adobe wouldn't give you the option of turning it off. I can't help to think that maybe this feature is somewhere in some of the editable Dreamweaver source files, but I think we'd need an Adobe expert to tell us how to hack it. Though it sounds like I am one of thefew that really cares to change it.
    And please, don't anyone start lecturing me on the virtues of using the <p> tag. I use it often. I just don't like it forced upon me. (I know, I know --- work in code view.) LOL
    Thanks folks.

  • My itunes library opens by itself every 10 minutes, how can I stop this?

    Several days ago my itunes library started opening on top of whatever I was doing without any prompting from me.  It initially started this while I was playing a game on my pc, now it does it all the time regardless of what I am doing.  What is causing this action and how can I stop it?

    Does is completely restart or just go into sleepmode? If sleepmode: go to Settings - General - autolock and change that setting.
    If it just restarts:
    1. Try doing a hard reset:
    Press and hold both the Home button and the Sleep/wake button simultaneously for about 15 seconds and release when the Apple logo appears.
    2. If that doesn't solve the issue, backup the device and restore it as new.
    In that case, use: http://support.apple.com/kb/HT4137
    NB: set up as a NEW device because a software issue will be in the backup. If the issue persists after restoring as new, you should offer the device for service.
    If you get specific error messages/codes in iTunes when updating/restoring, check this: http://support.apple.com/kb/ts3694 for causes and solutions
    Good luck
    Stijn

  • How can I stop other people copying my images from my web site.

    How can I stop other people copying my images from my web
    site.
    I use dreamweaver CS3 for the mac

    both are a waste of time. Fornication with a leaky condom.
    Pointless and not
    worth the effort. Or worse!
    the obfuscation JavaScript will get the site to not be
    listed in any search
    engines because they can't "see" the page or any links on it.
    You would be
    "protecting" the images but no one would find them.
    And all of those obfuscation JS things can be reverse
    engineered. In most
    cases- it's not worth it to prove it can be broken other than
    to prove it
    can be done. The images are nothing special in almost any
    site using one of
    those $29.95 applications.
    Have you done the basics? Turned off directory browsing or
    put a default
    index page in every folder? A few years ago i ran across a
    site with one of
    those block right click scripts on it. Dumb curiosity- opened
    a picture, and
    looked around the directory. All open directories. A block
    right click
    script and every folder on the site was open.
    /photos/private/girlfriend/hottub
    Nuff said. The blocking script made me curious enough to poke
    around the
    directories.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How can I stop tab order get changed/switched?

    I am on 10g platform. I have a page with 2 tabs [tab A (1st tab) and tab B (2nd tab)] and need to navigate to another page from tab B and come back to tab B and display tab B which I achieved using “disclosed” property. However the problem I face is that the tab order get changed/switched (tab B become 1st and tab A become 2nd) when I come back from the other page to tab B. How can I stop tab order get changed/switched?
    Code snippet from backing bean
    private CoreShowDetailItem tabA;
    private CoreShowDetailItem tabB;
    Following code will be executed while returning to tab B from other page.
    tabA.setDisclosed(false);
    tabB.setDisclosed(true);
    Code snippet from page
    <af:showDetailItem text=”Tab 1”
    binding="#{backingBeanName.tabA }">
    <af:showDetailItem text=”Tab 2”
    binding="#{backingBeanName.tabB }">

    Code snippet from backing bean
    I found solution for this problem and the solution as follows.
    private boolean tabA;
    private boolean tabB;
    Following code will be executed while returning to tab B from other page.
    tabA = false;
    tabB =true;
    Code snippet from page
    <af:showDetailItem text=”Tab 1”
    disclosed="#{backingBeanName.tabA }">
    <af:showDetailItem text=”Tab 2”
    disclosed="#{backingBeanName.tabB }">

  • How can I stop Firefox from telling me to update?

    I keep getting popups to update to Firefox 3.6.18 for mac os x. The problem is that the newer version will not open when I try to preview a web page through Dreamweaver. Firefox didn't always have this problem. The last version of Firefox to work properly was 3.5.16 which I am still using only because it works. How can I stop the Firefox update popups because since Firefox seems to have no intention of addressing or fixing the Dreamweaver problem, I have no intention of upgrading.

    You're welcome.
    For the record, here are the related bug reports:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=577671 Bug 577671 - Firefox 3.6.6 does not launch Dreamweaver CS5 browser preview]
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=549680 Bug 549680 - Preview from Dreamweaver CS3/CS4 does not work in FF3.6]

  • How Can I stop my thread?

    Hi!
    I'm developing an application of computacional geometry. It consist on a JFrame where I put some components like a JToolBar, a JTextArea, etc, and a JPanel. When the JPanel it's painted, there are a button that runs the JPanel in a new Thread.
    The problem is that I have another button to stop the thread, but I can't stop it completely if it is in a I/O operation.
    Here is the code of the run() method:
    public void run()
    Thread thisThread = Thread.currentThread();
    while (kicker == thisThread)
    if (runMode)
    lhull.removeAllElements();
         hull.removeAllElements();
    GrahamScan();
    runMode = false;
    aFrame.doneButton.setEnabled(true);
    stop();
    I stop the thread, but when it's in the GrahamScan() method, it continues painting things in the panel.
    How can I stop the thread completely?
    Thanxs in advance!!

    What's the matter with my line separators and my code indentation?
    Try to use yourThread.interrupt() at your button push event, and this code;
    public void run()
    Thread thisThread = Thread.currentThread();
    try {
    while (kicker == thisThread)
    if (runMode)
    lhull.removeAllElements();
    hull.removeAllElements();
    GrahamScan();
    runMode = false;
    aFrame.doneButton.setEnabled(true);
    stop();
    } catch (InterruptedException iEx){

  • How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.

    How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.
    ''locking - https://support.mozilla.com/en-US/questions/775159 ''

    Drudgereport includes JavaScript code that refreshes the page. You could disable JavaScript for the drudgereport site, that will stop it from refreshing. You can do that by installing the [https://addons.mozilla.org/firefox/addon/4922/ YesScript] extension which allows you to block JavaScript on sites that you specify.

  • How can I stop Maverick OS X from downloading?

    How can I stop Maverick OS X from downloading?

    There are multiple ways to configure the proxy settings on a Mac it sounds like your trying to do it manually. All the places I have been that have used a proxy server have used the "Auto Proxy Discovery" method and this has worked fine. This will work fine for multiple user accounts on multiple Macs.
    For those unaware "Auto Proxy Discovery" uses WPAD (Windows Proxy Auto-Discovery) protocol. This means it either 'learns' the address to download a PAC file from via DHCP option code 252 (preferred), or if it cannot get that address via DHCP it tries using the DNS method.
    All the Mac web-browsers use the proxy settings learned via System Preferences -> Network -> Advanced -> Proxies however some other software particularly command-line tools may need configuring individually. For example curl needs to be told separately.

  • How can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?

    Good afternoon friends.
    Please help me and tell how can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?
    I started using Apple ID in 2011 when iCloud was not exist and was forced to use non-apple e-mail adress as primary ID.
    So I used GMail mailbox.
    When iCloud was started I created my account but unfortunatelly can't remove this Gmail address from my Apple ID and replace it with icloud mail address.
    I was VERY dissapointed because I don't want to use "outside" mailbox to get letters from Apple and ny ID.
    In fact I see the Apple old users and fans discrimination.
    When creating new user accounts are free to create a box on the iCloud mail and use it as a primary ID, and the only ONE.
    At the same time the old user is obliged to keep third-party mail box like Gmail etc. as the primary and can not get such an opportunity, as a new user
    This is extremely inconvenient and a VERY strange logical.
    For example, now I want to stop using this mailbox on Gmail but I can not do that because in this case I lose access to my ID, or run the risk that someone in the future will create a box with the same name on Gmail (when name will be free and available) and will automatically get access to my accounts on Apple and to my Apple ID.
    Now, to avoid this, your team, I offer the only way out: ID, create anew.
    Of course it's possible, but then:
    - I lose all my purchases for 3 years and will be forced to make them again and pay money for the second time for my purchases
    - Lose access to the familiar iCloud e-mail address who now serves as secondary ID because this e-mail address is almost no longer available and will never be released in future.
    And now answer me for ONLY TWO questions:
    - WHERE IS LOGIC?
    - WHAT ABOUT TO BE FRIENDLY FOR YOUR USERS AND FANS?
    Thank you!
    Hopefully for your GOOD answers.

    You cannot make your @icloud.com address the login address for the ID. However you can change your ID, currently a Gmail one, to any other functioning non-Apple email address. The Gmail address would then no longer access your account, and so even if someone were to obtain posession of it (is that even possible) it wouldn't allow them to get into your account.
    If you want to change your ID to another email address please follow the procedure outlined below, particularly noting the first step.
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Create a new email address, for example  at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
    Enter your new address and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.

Maybe you are looking for

  • A mass request ( Things need to be added, improved...

    Things need to be added, improved, modifying or even be developed in any update or upcoming version of Windows Phone - in my opinion - are as follows : System Improvements : 1- Windows Phone must include a System , folder & files Management app as em

  • Switching from a pc to a mac (long)

    m thinking of switching the computers in my family to macs from pcs but have a slew of questions and need some advice if be switching 2 computers. computer # 1 is a pentium d 840 with 3gb ram,a 230gb internal harddrive and 2 external usb hard drives

  • Time stamp off by two hours - in file name

    When I import, I rename my files to include date and time in the filename, like so: [IMG NR] - [YYYY]-[MM]-[DD] [HH].[MM].cr2 Here's the strange thing: If I do the renaming on import, LR3 consistently adds +2 to the hours. So an image that was taken

  • Flash Player 11.7 Sound Playback Bug

    We've received reports that sound is cutting off from both video and audio content with some Flash content using Flash Player 11.7.700.169 (and 11.7.700.179).  I apologize to those effected by this bug.  We've been able to reproduce the issue interna

  • My iPod wont restore it has error code 1600

    my ipod when i try to restore it keeps saying error 1600 i need help !