Code Indenting Issue

I'm having an issue with code auto indenting, or lac kthereof,  in Dreamweaver (CS5.5), on a windows operating system.
I have set my Code Format Preferences as follows:
Indent (yes) with 1 Tab
Tab Size 4
That is all fine and dandy, however, when I'm writing code (such as an array in PHP), and hit return, it's not auto indenting as it should. On my windows system it looks like the following:
$args = array(
'redirect' => admin_url(),
On my mac system at work, the same code auto indents the second line (which is the array items) to the the start of the array bracket. The same goes with any ending array brackets, it aligns them properly.
$args = array(
                         'redirect' => admin_url(),
To me this makes for much cleaner code but I can't figure out why one system does it and not the other.  Did I miss a prefference setting somewhere?
If someone could help me that would be great!

It will work if you haven't and exception block in the end of the function or procedure. Of course that doesn't help nothing at least for me cause i'll always put exception blocks in teh end.
What would be great is to have a list of procedures in package. In the tree navigation under the packages.

Similar Messages

  • Improper Code Indenting - How to make it stop!?!?

    Hello all,
    I don't know how I'm just noticing this, maybe it only happens on newly created pages in CS4. But I've noticed that the code indenting isn't the way it used to be. There are times when after hitting enter, you'd expect the next line to be indented to the same spot as the previous line. But now Dreamweaver will sometimes add a lot of indents!
    When writing the following PHP code, after hitting enter after the opening curly bracket one would expect to see the cursor placed as below:
    (Please keep in mind that in the "correct" examples, there should be a single indent infront of "<cursor>" and "echo" but this forum deletes the single space for whatever reason.)
    <?php
    if(isset($_POST['car']){
    <cursor>
    ?>
    ... but instead, the cursor gets very indented...
    <?php
    if(isset($_POST['car']){
                    <cursor>
    ?>
    If I manually remove the extra indents and continue on, I can get to this...
    <?php
    if(isset($_POST['car']){
    echo "vrooom";
    <cursor>  
    ?>
    ... but as soon as I attempt to type the closing curly bracket, the indent jumps again...
    <?php
    if(isset($_POST['car']){
    echo "vrooom";
                    }<cursor>
    ?>
    This is very frustrating to say the least. It seems like dreamweaver is trying to indent to the same position as the opening square bracket for some reason.
    Any ideas how to stop dreamweaver from doing this???
    Thanks as always!
    Peter

    peterallcdn wrote:
    (Please keep in mind that in the "correct" examples, there should be a single indent infront of "<cursor>" and "echo" but this forum deletes the single space for whatever reason.)
    <?php
    if(isset($_POST['car']){
    <cursor>
    ?>
    ... but instead, the cursor gets very indented...
    <?php
    if(isset($_POST['car']){
                    <cursor>
    ?>
    It's because you have a syntax error in your "correct" examples. There should be another closing parenthesis before the opening curly brace:
    <?php
    if(isset($_POST['car'])) {
    The deep indentation is a bug that affects the layout of jQuery functions, and it will hopefully be fixed in the next version of Dreamweaver. In your case, it's unintentionally alerting you to a mistake in your PHP code.

  • HT201232 Support Subject : iTunes Cards and Codes Sub Issue : hi i want to change my iTunes account from US Store to Kuwait Store and i want to reset My balance.

    Support Subject : iTunes Cards and Codes
    Sub Issue : hi i want to change my iTunes account from US Store to Kuwait Store and i want to reset My balance.

    Try contacting iTunes Support (these are user-to-user forums) and ask them if they can remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Code Block issues

    Repost from the new forums, so it doesn't get wiped
    * First & foremost, is there a way to make code blocks slightly wider? Or to make the whole forum flex-width instead of fix-width? Currently I can see that a LOT of code is going to be off the right hand edge of the page. That "Actions" column takes a frustrating amount of room.
    * Secondly, is tab-width within your control? That might help with the first issue too (eg, if the tabs indents only 3-4 spaces wide instead of 4 picas).
    * And finally, all the code I paste into the browser has double-spacing instead of single spacing. I suspect this is some weird cr/lr issue. Don't know if the back-end has some sort of tr ability to replace all of them with a single cr, but it would be really nice.
    * While we're making a wishlist, Applescript & Javascript code highlighting would be nice too!

    OK. We are now seeing some new behaviour.
    I've installed ODAC 11g 32 bit onto the problem machine.
    I also installed onto the system where things work.
    The result is:
    1) On the machine where everything worked with 10g ODAC, it's working fine with 11g
    2) On the machine where it DID NOT work with 10g ODAC, it still DOES NOT WORK.
    Using the 11g 32 bit ODAC, we now get the following exception:
    ora-12514: TNS: listener does not currently know of service requested in connect descriptor
    We are able to run SQLDeveloper and point to the same SID (ORCL) and we can connect to the DB instance fine.
    Here is what the TNSNAMES.ORA file looks like:
    # tnsnames.ora Network Configuration File: C:\app\DjM\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.168.1.100)
    This is what the SQLNET.ORA file looks like:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    This is what the connection string looks like:
    "user id=xxx;password=\"xxx\";data source=localhost:1521/ORCL"
    Again, any and all help/suggestions would be appreciated here.
    Thanks,
    JB

  • Code page issue - Unix file(s) content display in a report output

    Hi All,
    I am trying to retrieve file from Unix server and display in my report output.
    I have written code as below:
    OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      DO.
        READ DATASET filename INTO i_tab-line.
      ENDDO.
    CLOSE DATASET.
    1. Now i am able to display files of type .txt in report output but with line numbers above each line.
    How can i avaoid it! I want to display as it looks in AL11 view.
    2. If i am displaying files of type .PDF it is giving dump with below message:
    A character set conversion is not possible.
    At the conversion of text from code page '4110' to '4102' is not possible.
    - a character was found that cannot be displayed in one of the two code pages;
    - or it was detected that this conversion is not supported.
    How can i display the .PDF (or) all types of files in my report as it is viewable in AL11.
    Can anybody solve this this.
    I have tried UTF-8 & NON-UNICODE options with ENCODE also they are also giving same dump.
    Can anybody resolve these issues!
    Thanks in advance.
    Thanks,
    Deep.

    Hi All,
    Any resolution for above posted issue!
    Thanks,
    Deep.

  • T.Code for  issues return by the user after month closing

    Dear SAPient's,
    Give us the transaction facility available in SAP to account the issues
    return by the user after month closing.
    regards,
    Bijay Jha

    Dear SAPient's,
    Actually I want to know that when the Goods Issued and from that some goods are returned back due to any reason.
    I want to know Is there any T.Code from which i can get full details of Goods which is returned after Issuing in one month.
    Warm Regards,
    Bijay Kumar Jha

  • One Bank Account used by Multiple Company Codes - BRS Issue

    Dear All
    We have a scenario where 1 bank account is maintained under different company codes and used for business purpose.  In this scenario we are able to do Funds Transfer without any issue. When we are going to do BRS, there is a issue.  When we receive Bank Statement, we receive only one statement and when we try to import into system, system will throw the error as system is not able to decide for which company code it has to perform BRS.
    Can anybody help me out in resolving the issue.
    Rayala

    Hi,
    For BRS it is impossbile.   For maintainig account and all technically it is ok.  But it advisable to have different account at least for different company code.
    Thanks
    Kalyan

  • Company code creation issue

    Hi All,
    When I am creating company code I am getting an error as below.
    "you may not change the currency since documents exist with this currency"
    Above issue is coming while new co code creation or copying of existing co code also.
    Please advice on the above issue.
    Regards,
    Riyaz

    Hi,
    I hope you are creating new company code by copying from the exiting company code. If you copy one company code to another company code then you will get few pop- up message like do you want to use same chart of account or do you want to use same currecny like that. So may be you have selected different currecny. Sap has come up with country template for each country. So you can use country template to create the new company code.
    Thanks & Regards
    R.K

  • Code Indent in Dreamweaver CS3

    I have just tried out Dreamweaver in CS3 and I was
    disappointed to find that one of the most basic features in any
    code editor remains elusive. I am quite simply talking about the
    indent of code. I have set code to indent with 4 spaces in the Code
    Format preferences window, but when I indent code, it still uses a
    tab. I know it's not a massive deal, but it's such a simple feature
    and it has caused me a good bit of frustration. It would be great
    if Adobe could fix this sometime :)

    I've had the Convert Tabs to Space on... and it appears to be
    just spaces in
    DW... but if you open file in Notepad, then they are in fact
    Tabs... so DW
    is not converting... just in the way it gets displayed.
    "Randy Edmunds" <[email protected]> wrote in
    message
    news:f0apco$p8e$[email protected]..
    > ebow,
    >
    > What kind of "code" are you talking about?
    >
    > The DW pref that uses spaces vs. tabs applies to the
    indenting done for
    > source formatting of HTML "markup" or CSS "rules" (i.e.
    not JavaScript
    > "code").
    >
    > But, if you hit a tab character on the keyboard, that's
    what gets
    > inserted.
    >
    > Note that you can select a block of text, right-click
    and use:
    >
    > Selection > Convert Tabs to Space
    >
    > Hope this helps,
    > Randy
    >
    >
    >> I have just tried out Dreamweaver in CS3 and I was
    disappointed to find
    >> that one of the most basic features in any code
    editor remains elusive. I
    >> am quite simply talking about the indent of code. I
    have set code to
    >> indent with 4 spaces in the Code Format preferences
    window, but when I
    >> indent code, it still uses a tab. I know it's not a
    massive deal, but
    >> it's such a simple feature and it has caused me a
    good bit of
    >> frustration. It would be great if Adobe could fix
    this sometime :)

  • Code lookup issue Flash Builder 4 B2

    Had this issue before with flash builder 4 beta 2 where the code look up will not work
    While working thru Day 4 EX 4.1
    "Using code lookup to generate the click event will present you with the Generate Click Handler option in the code lookup window (see Figure 4). Click the option or press the Enter key to use the option to generate a function."
    Have no problem seeing the code look up for the <s:Button> however once I get the click will not show code look up for Generate Click Handler window.. is there a way to get this to run.. to move foreward with the exercise I just wrote out the code..is there a way to trigger the code look up?

    Mark - so you see click in the drop down and you select it so that your code now says:
    <s:Button click="" />
    and the code lookup now shows "Generate Click Handler" between the click double quotes?
    What happens if you place your cursor between the double quotes in the click event and type ctrl+spacebar?
    Can you share a screenshot of what's happening?

  • Code Insight Issue - SQL Developer 1.1 (1.1.0.23 Build Main 23-64)

    Dear SQL Developer Team,
    I have a slight issue with the Code Insight.
    I have created a package with three procedures
    create or replace PACKAGE PACKAGE1 AS
    procedure test1 (inpar varchar2);
    procedure test2 (inpar varchar2);
    procedure test3 (inpr varchar2);
    END PACKAGE1;
    When I try and reference the procedures in the package code insight only shows two procedures (see this link for the screenshot http://i12.tinypic.com/3zqbuiv.gif)
    Any ideas ?
    Chris

    Sorry Chris, been tied up. looked at this
    1. created a PTN table. This is the DDL export of that table. Range partition on date.
    -- DBMS_METADATA was unable to use TABLE_EXPORT to generate sql. Now trying to use TABLE.
    CREATE TABLE "HR"."TABLE1"
    (     "ID" NUMBER,
         "HIREDATE" DATE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    PARTITION BY RANGE ("HIREDATE")
    SUBPARTITION BY LIST ("ID")
    (PARTITION "P1" VALUES LESS THAN (TO_DATE(' 2006-12-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP21" VALUES (DEFAULT)
    TABLESPACE "USERS") ,
    PARTITION "P2" VALUES LESS THAN (TO_DATE(' 2007-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP22" VALUES (DEFAULT)
    TABLESPACE "USERS") ) ;
    2. Export from Resultset tables in query. As insert statements
    REM INSERTING into TABLE1
    Insert into TABLE1 ("ID","HIREDATE") values (1,to_date('12-DEC-06','DD-MON-RR'));
    Insert into TABLE1 ("ID","HIREDATE") values (2,to_date('21-JAN-07','DD-MON-RR'));
    I'm also getting the others working well too. I 'm running the latest version that we are about to release a patch on so it should be good when it comes out.

  • Profit cebter and copany code configuration issue

    i am making one sales order in which the item number level when i put profit center GB03100004 earlier i was getting company
    code in profit segment as GB03, but now i am getting as GB01.
    is this related to any configuration issue, please let me know.

    Hi,
    Goto the T.Code KE53.
    Enter the Controlling area.
    Enter the profit centre.
    Click on Company Codes.
    Check for which company code the field "Assigned" is ticked.
    Please check with your FICO consultant for more information and modifications.
    Regards,
    Krishna.

  • ABAP Query Code timeout issue

    Hi,
    I have a SAP query which was the following code which is causing a timeout issue when running the report, can anyone suggest how I can change the code to make it more efficent?
    * This gets the sum of all labour costs on WBSEs.
      clear X_COEP_WKGBTR_LAB_W.
      if PRPS-OBJNR is not initial.
      select sum( WKGBTR ) from COEP
        into X_COEP_WKGBTR_LAB_W
        where
        PERIO = ZPERIODT
        and
        GJAHR = ZYEAR
        and
        KSTAR >= 'A43'
        and
        KSTAR =< 'A43ZZZZZZZ'
        OR
         KSTAR = '0005767012'
        and
        OBJNR = PRPS-OBJNR.
      endif.
    thanks
    Joe

    Hi Joe,
    I see none of the Key fields were used in select query.
    Create a secondary index for the table and use it in select query.
    It increases the performance.
    COEP~1 and COEP~2 are already existing.
    select sum( WKGBTR ) from COEP
        into X_COEP_WKGBTR_LAB_W
        where
        PERIO = ZPERIODT
        and
        GJAHR = ZYEAR
        and
        KSTAR >= 'A43'
        and
        KSTAR =< 'A43ZZZZZZZ'
        OR
         KSTAR = '0005767012'
        and
        OBJNR = PRPS-OBJNR
    %_HINTS ORACLE 'INDEX("COEP" "COEP~1").
    Thanks,
    Anil

  • JDBC/ code Style issue

    Hi all I am working on a java web application, and in one area of my code I am copying parts of one table to another. The issue is there is 20 fields that I am copying at once. I am using a preparedStatement to set each of the values individually, but it is obviously making the method quite long. I was wondering if there are any fairly painless manners in which to reduce the size of this, or if others have run into this and just left it as is.
    thanks in advance.

    It depends.
    One thing though when you say copying data I would do
    that all in SQL anyway. Something like
    INSERT INTO target_table(columns) SELECT columns FROM
    source_table WHERE ...
    Syntx varies upon database.Great idea. I will look into it once I have things working. I'd rather not introduce another point of confusion before I see results. Unfortunately the DB in question doesn't have a huge following/ huge amount of information that I have found as of yet.

  • Code Inspector Issue - "MODIFY - without TRANSPORTING was found in line "

    Hi all
    I am new to abap and my transports are unable to move further because of code inspector error 
    "MODIFY - without TRANSPORTING was found in line ". Help me resolve the issue.
    For example
    LOOP AT i_user_add.
        i_user_add-mandt = sy-mandt.
        MODIFY i_user_add.
      ENDLOOP.
    <removed_by_moderator>
    Edited by: Julius Bussche on Oct 16, 2008 3:23 PM

    Hi ,
           while modifying the internal table specify wich field you are modifying
    modify <internal table > from <work area> transporting <fields>.
    regards
    naveen

Maybe you are looking for

  • How to detect if  Database is down when client application is running?

    Hi, I have a oracle Forms application accessing a remote database. While doing processing, application has to post some data in a remote database. As of now, when the Forms client is running and remote database is down, the client hangs. I have tried

  • One item depending on another item

    Hi All! I have a problem in connecting two (select list with submit items) with each other, in order to display a report: First select list: select manager_name d, manager_name r from manager_list [the second item, also select list with submit should

  • Inventory 0IC_C03 Backward caluculation issue

    Hi experts, In Inventory reportm custom query, Kaydate with 365 days offset is used, there data is showing correct with Initialization date and future date. problem is for historical date some time negative and postive values are showing but mot matc

  • IPS modules in Cisco ASA 5510 Active/Standby pair.

    All, I am looking to add the IPS module to my ASA 5510's. I am contemplating only purchasing one module and placing it in the active ASA. I am willing to accept that in a failure scenario I will loose the IPS functionality until the primary ASA is re

  • Lr 5 appears two times in my creative cloud apps tool

    Hello, when I opened the creative cloud tool for updating to CC 2014 and Lr 5.5, I recognized that Lr 5 was mentioned two times. For the 'first Lr', there was a button update which I used to update for 5.5, and next to the second, there was no update