Line Break After Semi-Colon?

Does anyone know how to make the SQL formatter force a line break after a semi-colon? I love the formatter feature, but I often have numerouse SQL statements on the same worksheet, each ended by a semi-colon, and when I format the code all of my line breaks get removed making it difficult to read. I've worked around this by using the "Force Linebreak before line comments" option and putting a "--" between each statement as well. This seemed to start in 1.5.5, but also exists in EA2 2.1.

Hi Jarod,
Can you give me an example of the SQL your formatting and the results you are experiencing.
I tried
Thanks
Dermot.

Similar Messages

  • Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

    I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
    My question is there any way to add a space or a line break after the comma for each listed item?
    Here is an image of the output where the listed items are all run together.
    Here is the code:
    function validateFields()
    //a counter for the number of empty fields
    var flg = 0
    // count all the form fields
    var n = this.numFields
    //create an array to contain the names of required fields
    //if they are determined to be empty
    var fArr = new Array();
    //loop through all fields and check for those that are required
    // all fields that have a '*' in their tool tip are required
    for(var i = 0;i<n;i++){
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    //tool tip is the fields\'s 'userName' property;
    var tt = f.userName
    //test for the '*';
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
    //increment the counter of empty fields;
    flg++;
    //add the fields userName (tool tip) to the list of empty field names;
    fArr[fArr.length] = tt;
    //now display a message if there are empty fields
    if(flg>0){
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    else{
    this.print();

    Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
    I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
    Thanks again and here is the result of the updated code:

  • How eliminate line break after JPN opening parenthesis

    Is there a way to force my JPN parenthesis marks to stay with the parenthesis text?
    If the opening parenthesis mark occurs at end of a line it does not stay with the contents of the parenthesis, for example:
    ...................end of line『
    parenthesis』
    I have verified that the JPN opening paranthesis mark is not in the "Allow line breaks after" list.
    Thank you for any help!
    Karen

    Well, Karen,
    I am under the impression that it is not necessary to do that. My path 
    of evaluation would be:
    Switch the system locale of a computer to Japanese (if you don't 
    have access to a real Japanese setup)
    Start FrameMaker and create a blank new file, save as MIF
    Open the MIF to find hopefully the default Japanese Kumihan tables
    Back on my standard setup I would
    check if the Kumihan tables need any modification
    Import the MIF segment into one of my existing Japanese documents to 
    see if they are applied
    Unfortunately I have no time at the moment to test this in person.
    - Michael
    Am 26.10.2009 um 18:31 schrieb Karen Story:
    Thank you Michael, this is so helpful! Unfortunately, it looks like 
    the fix for my problem requires opening the FrameMaker files in an 
    Asian locale, which is going to be extremely difficult and painful 
    for our process. It would be wonderful if Frame could implement this 
    functionality for an ENU locale.
    Thanks again!
    Karen

  • Command line to sort semi-colon delimited string

    I'm sure there's a simple solution eluding me... I have an app which stores sets as a string like:
    "bee;ant;cow;ant;Aardvark;dog"
    which I want to sort to a string like:
    "Ardvark;ant;bee;cow;dog"
    ...where letter sort** is case insensitive and number strings sort on numberical value (i.e. 1,2,10 not 1,10,2). FWIW, the string length is likely to be short and not large numbers of delimited terms - in case that matters.
    ** I can duck issue of sorting & accented characters if that's a significant complication at this point.
    The app in question can't do the sort but can call a Unix command line and read its stdout. I want a single command line not an external script for portability/support reasons, though it doesn't matter if the CL is long. So, please don't suggest I use a script even if it's your own preferred method!
    I thought of using 'sort' but that's for lines in a file vs a single input line. I guess I use awk, or can a pass perl as a CL (as opposed to calling a script)? Either way, my poring over the references I have hasn't showed me a solution and I don't know perl. Here's hoping someone can point me in the right direction.
    TIA
    Mark

    Here's one way to accomplish what you're asking:set stuff2Sort to "bee;ant;cow;ant;Aardvark;dog;1;10;2"
    set sortedStuff to sortStuff(stuff2Sort)
    on sortStuff(x)
    set tmpSort to paragraphs of (do shell script "echo " & quoted form of x & " | awk 'gsub(\"",\"\\n\") {print}' | sort -g")
    set oldDelims to text item delimiters
    set text item delimiters to ";"
    set theSorted to tmpSort as string
    set text item delimiters to oldDelims
    return theSorted
    end sortStuffI don't know if the ";" and "\" are appearing correctly or not. When I preview this post it shows up as a smiley face even though I have it in a code block!
    Hope this helps...
    Message was edited by: Chachi
    Sorry, thought I was in the Applescript forum! DOH!!!

  • Unwanted Line Breaks in PL/SQL CODE after 'CREATE OR REPLACE' statements

    Does anybody know how to keep SQL Developer from automatically editing PL/SQL code and adding line breaks after 'CREATE OR REPLACE' statements?
    It keeps taking:
    CREATE OR REPLACE PACKAGE DEVELOPER AUTHID DEFINER
    And turns it into:
    create or replace
    package developer AUTHID DEFINER
    This unwanted linebreak causes our autodeployment processes to break.
    Thanks,
    Michael Dunn
    University of Notre Dame
    Edited by: user9133268 on Feb 21, 2012 8:00 AM

    Hi Michael,
    I believe nothing for this issue has progressed since it was asked here:
    2.1 RC Extra Line Breaks
    As there may be approval for some planned improvements to the SQL Formatter feature in 3.2, I logged an enhancement request for you:
    Bug 13744858 - FORUM: UNWANTED LINE BREAK AFTER CREATE OR REPLACE SYNTAX
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 21, 2012 4:19 PM
    But if you have control over your auto-deployment process code, it might be quicker to enhance that to deal with CREATE OR REPLACE on the same or the preceding line. Also, note that if you edit the package DDL to put the CREATE OR REPLACE on the same line with the package name in the code editor, then immediately use Export or Save Package Spec and Body to save it to disk, then PACKAGE <name> will appear on the same line as the CREATE OR REPLACE syntax.

  • Inserting xml in sqlplus with semi colon at end of line

    Hi
    I'm trying to insert some generated XML. There are carriage returns in the XML and some lines have a semi colon at the end. The SQLPLUS interface is taking the semi colon as the instruction to execute. Can I mask the semi colon so it's not interpreted as the instruction to execute so the insert will work.Sample code below.
    insert into mytab REQUEST_XML, XML_FLAG_YN)
    values ('DS_REQUEST_HEADER;
    OPERATIONAL;
    SDSDL&gt;'
    'Y');
    SQL> insert into mytab REQUEST_XML, XML_FLAG_YN)
    2 values ('DS_REQUEST_HEADER;
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL> OPERATIONAL;
    SP2-0734: unknown command beginning "OPERATIONA..." - rest of line ignored.
    SQL> SDSDL&gt;'
    SP2-0042: unknown command "SDSDL&gt;'" - rest of line ignored.
    SQL> 'Y');
    SP2-0042: unknown command "'Y')" - rest of line ignored.
    SQL>
    Thanks

    SQL> create table mytab (request_xml varchar2(2000), xml_flag_yn varchar2(1));
    Table created.
    SQL> insert into mytab (request_xml, xml_flag_yn)
      2  values ('DS_REQUEST_HEADER;
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL> ed
    Wrote file afiedt.buf
      1  begin
      2    insert into mytab (request_xml, xml_flag_yn)
      3    values ('DS_REQUEST_HEADER;
      4  OPERATION;
      5  <SDSDSD>',
      6  'Y');
      7* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select * from mytab;
    REQUEST_XML
    X
    DS_REQUEST_HEADER;
    OPERATION;
    <SDSDSD>
    Y

  • Is it possible to automatically add hyphen after period on line break?

    I have words that contain periods e.g. "text1.text2". If the line breaks after period, there isn't hyphen. How can I automatically add hyphen after period on line break? I have tried to hyphenate the word in user dictionary and used discretionary hyphen but neither of them works.

    I don't believe there's a way to do this, but perhaps someone else has some thoughts. Best I can come up with is to make the . non-breaking and force the line to hyphenate in the first word.

  • Line Break for XML File

    All,
    I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tags.
    Please find the following code used by me for reference.
    LOOP AT lt_ohd INTO ls_ohd.
        ls_temp_ohd = ls_ohd.
        AT FIRST.
          l_ixml = cl_ixml=>create( ).
          l_document = l_ixml->create_document( ).
          l_element_ohd  = l_document->create_simple_element(
                      name = 'OHD'
                      parent = l_document ).
        ENDAT.
        AT NEW cc.
          CLEAR : lv_inhaltskom, lv_text.
          lv_inhaltskom = ls_temp_ohd-cc.
          CALL FUNCTION 'ISM_SELECT_TEXT_JJTIKO'
            EXPORTING
              pv_inhaltskom = lv_inhaltskom
            CHANGING
              pv_langtext   = lv_text.
          TRANSLATE lv_text TO UPPER CASE.
          l_value = lv_text.
          l_element_county  = l_document->create_simple_element(
                      name   = 'city_county'
                      value  = l_value
                      parent = l_element_ohd  ).
        ENDAT.
        AT NEW order.
          l_element_neighborhood  = l_document->create_simple_element(
                      name    = 'entry'
                      parent  = l_element_county  ).
        ENDAT.
        l_value = ls_temp_ohd-neighborhood.
        l_element_address  = l_document->create_simple_element(
                    name   = 'neighborhood'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-address_detail.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address_detail'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-order.
        l_element_address  = l_document->create_simple_element(
                    name   = 'order'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-item.
        l_element_address  = l_document->create_simple_element(
                    name   = 'item'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-cc.
        l_element_address  = l_document->create_simple_element(
                    name   = 'cc'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-address.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-price.
        l_element_address  = l_document->create_simple_element(
                    name   = 'price'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-bed.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bed'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-bath.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bath'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-opentime.
        l_element_address  = l_document->create_simple_element(
                    name   = 'opentime'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-state.
        l_element_address  = l_document->create_simple_element(
                    name   = 'state'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-zip.
        l_element_address  = l_document->create_simple_element(
                    name   = 'zip'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_streamfactory = l_ixml->create_stream_factory( ).
        l_ostream = l_streamfactory->create_ostream_itable( table = lt_xml_table ).
        l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                              document = l_document ).
        l_rc = l_renderer->render( ).
        l_xml_size = l_ostream->get_num_written_raw( ).
      ENDLOOP.
    Regards,
    Salil
    Edited by: salil vaidya on Jan 18, 2011 2:34 PM

    Thanks.
    But now, I have a syntax error.
    BEGIN OF xml_line,
              data(256) TYPE x
    END OF xml_line.
    DATA: lt_xml_table      TYPE TABLE OF xml_line,
          ls_xml_table      TYPE xml_line.
    LOOP AT lt_xml_table INTO ls_xml_table.
        CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
        MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
        CLEAR : ls_xml_table, ls_string.
      ENDLOOP.

  • Unexpected line breaks in output of a sql query

    Hi,
    I have a query which looks like:
    set pages 0
    set feed off
    set newp 0
    set lines 350
    select LPAD(SUBSTR(COLUMN1,1,23),23),LPAD(SUBSTR(COLUMN2,1,42),42), SUBSTR(TO_CHAR(START_TIME,'HH24:MI:SS'),1,8),SUBSTR(TO_CHAR(END_TIME,'HH24:MI:SS'),1,8)
    FROM TABLE1;
    When executed using SQL*Plus this query puts a line break after each column and hence I get a record on several rows on the screen.
    But the last two columns are printed on the same line. I suspect the LPAD is causing some problem.
    I have two databases. It works perfectly on one and not on the other.
    Is there a oracle parameter due to which the result is affected?
    T&R,
    BRK

    Try this:
    set pages 0 feed off newp 0 lines 350 trims on
    select LPAD(SUBSTR(COLUMN1,1,23),23)
         , LPAD(SUBSTR(COLUMN2,1,42),42)
         , TO_CHAR(START_TIME,'HH24:MI:SS')
         , TO_CHAR(END_TIME,'HH24:MI:SS')
    FROM TABLE1;

  • How to line break in an SQL Report

    I have a simple SQL report with many columns that make the window very wide and the use has to scroll horizontally quite a lot.
    How can I make the line break after some column?
    Can someone give me a live example for that?

    Custom report template then is your answer.. Without seeing your initial report it would be hard to give you the code fully. However, if you open the standard report template for your theme, you could save it as a new template and edit it accordingly. You would find the column you wish to break on and create a new <tr> .. </tr> under the <td> definition..
    Thank you,
    Tony Miller
    Webster, TX

  • Print a line break every 9 characters

    this is a relatively simple problem but for some reason i cant figure it out.
    i have a 2 dimensional array of 9x9 ints.
    i am saving this array to a file, and want to print all 81 ints, separated by spaces, and after every 9 ints printed i want the line to break.
    this is what i have:
              for(int i = 0; i < 9; ++i)
                   for(int j = 0; j < 9; ++j)
                        outStream.print(intBoard[i][j] + " ");however, with this method it prints them without line breaks after every 9. anyone know an easy way to do this? i was thinking something along the lines of keeping a count, e.g. count++ after every time it goes through the loop, but still cant figure out how it would work.
    thanks very much in advance

    for(int i = 0; i < 9; ++i) { // <-- Added Brace
         for(int j = 0; j < 9; ++j)
              outStream.print(intBoard[i][j] + " ");
            // <-- Create break here
    } // <-- Added BraceSo, after every time the inner loop completes, you'll need to create a line break, then the loop starts over and repeats.

  • 2.1 RC Extra Line Breaks

    How do I turn off the line break after CREATE OR REPLACE so that CREATE OR REPLACE <package name> PACKAGE AS stays on the same line. Been into the formatting options and tried various combinations and cannot get it to change. Do not remember it doing this with previous version of sql developer.

    Hi colinj ,
    I went through a few of the options and I could not suppress that newline.
    The same happens in 1.5.5.59.69 . There have been a couple of improvements in the formatting
    engine for this release but this newline has not been changed for this release.
    -Turloch

  • Regarding Line Break Expression (New to Regular Expression)

    Hi,
    I am new to regular expression.
    I have a query.Suppose I have a
    String str = Anshuk
    Anshuk1
    Anshuk2
    Anshuk3
    Anshuk4
    where we have a line break after Anshuk and then again after Anshuk1 and so on.Actually, we have different records in different lines.
    how do I make it possible usign regex that to make him inderastand that those are in different lines (meaning different records)?
    I m trying...but not getting it..wat should be the code?
    anshuk

    What do you mean? What have you done?
    Have you set the pattern to use MULTILINE?
    Kaj

  • Line break on column header

    after you run your sql statement, let us say that your column header looks like this companName(Main Head Quarter) will it possible to have a line break after the companyName in your sql statement and make the out put for the sql statement look like this.
    companyName                    companyAddress          Zipcode
    (Main Head quarter)   

    I know I can do this in sql plus. example COLUMN SALARY HEADING 'MONTHLY|SALARY'
    but I am using toad and wondering if there is an option that I can turn on to display the header in two lines. thank you

  • Grep - Discretionary hyphen and discretionary line break

    Hi,
    Trying to inset the discretionary hyphen in before the "m-dash word" and discretionary line break after the m-dash. If applied type styles with-in this text (bold & italic), before the first character of m-dash is changed in roman. Can you please look into the below screen-shots and guide to me, how to avoid this.
    Before:
    After:
    code:
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;               
    app.findGrepPreferences.findWhat = "([\\l\\u]+)~_";
    app.changeGrepPreferences.changeTo = "~-$0~k~-";
    app.documents.item(0).changeGrep();

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "([\\l\\u]+)(?=—)";
    app.changeGrepPreferences.changeTo = "~-$0";
    app.documents.item(0).changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "([\\l\\u]+)~_";
    app.changeGrepPreferences.changeTo = "$0~k~-";
    app.documents.item(0).changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    Vandy

Maybe you are looking for