Code formatter breaking my literals asunder

The code formatter should respect my literal new lines rather than breaking my literals asunder,
||ltrim(sys_connect_by_path("Customer Name", ':
for one can not use a function such as chr(10) in sys_connect_by_path.

Built in SQL Worksheet:
create table a as select '1' a, '2' b from dual;
create procedure p
as
begin
for r in
(select ltrim(sys_connect_by_path(a, ':
from a
connect by prior a = b
loop
null;
end loop;
end;
As formatted (ctrl-F7) in SQL Dev proc editor:
CREATE OR REPLACE
PROCEDURE p
AS
BEGIN
FOR r IN
(SELECT ltrim(sys_connect_by_path(a, ':
FROM a
CONNECT BY prior a = b
LOOP
NULL;
END LOOP;
END;
Furthermore, the formatter operation is not idempotent as exhibited by the result of a second ctrl-F7:
CREATE OR REPLACE
PROCEDURE p
AS
BEGIN
FOR r IN
(SELECT ltrim(sys_connect_by_path(a, ':
FROM a
CONNECT BY prior a = b
LOOP
NULL;
END LOOP;
END;
About
Oracle SQL Developer 3.1.07
Version 3.1.07
Build MAIN-07.42
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product Version: 11.2.0.07.42
Version
Component     Version
=========     =======
Java(TM) Platform     1.6.0_11
Oracle IDE     3.1.07.42
Versioning Support     3.1.07.42
Code Style Profiles xml:
<?xml version = '1.0' encoding = 'UTF-8'?>
<SQLprofiles class="oracle.dbtools.proformatter.treePreferences.style.profile.CodingStyleSQLProfiles" xmlns="http://xmlns.oracle.com/jdeveloper/110000/default-coding-sql-style-profiles">
<profileMap class="java.util.HashMap">
<Item>
<Key>1:Old Preferences</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>false</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>false</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>false</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>999</lineNum>
<lineWidth>999</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>Old Preferences</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>80</smallSql>
<sourceSql>1</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>1:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>1</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>2:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>2</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>3:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>3</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>4:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>4</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>5:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>5</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
<Item>
<Key>6:SQL</Key>
<Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
<alignAs>true</alignAs>
<alignComma>false</alignComma>
<alignComment>true</alignComment>
<alignConcat>true</alignConcat>
<alignDecl>true</alignDecl>
<alignEqual>true</alignEqual>
<alignKeyword>false</alignKeyword>
<alignOperator>true</alignOperator>
<bracketSpacing>0</bracketSpacing>
<bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
<breakAfterAnd>false</breakAfterAnd>
<breakAfterComma>true</breakAfterComma>
<breakAfterConcat>false</breakAfterConcat>
<breakBeforeAnd>true</breakBeforeAnd>
<breakBeforeComma>false</breakBeforeComma>
<breakBeforeComment>false</breakBeforeComment>
<breakBeforeConcat>true</breakBeforeConcat>
<breakCase>true</breakCase>
<breakCaseAndOr>true</breakCaseAndOr>
<breakCaseElse>true</breakCaseElse>
<breakCaseThen>true</breakCaseThen>
<breakCaseWhen>true</breakCaseWhen>
<breakJoin>true</breakJoin>
<breakKeyword>true</breakKeyword>
<breakSchema>0</breakSchema>
<breakSelectBracket>true</breakSelectBracket>
<colored>false</colored>
<commaSpacing>0</commaSpacing>
<dblIndent>false</dblIndent>
<forceDifference>true</forceDifference>
<indentAnd>false</indentAnd>
<lineNum>10</lineNum>
<lineWidth>80</lineWidth>
<memberOrderHashStructure/>
<moreNewlines>false</moreNewlines>
<name>SQL</name>
<numCommas>1</numCommas>
<numSpaces>2</numSpaces>
<operatorSpacing>0</operatorSpacing>
<quoteChar>0</quoteChar>
<replaceComment>false</replaceComment>
<smallSql>20</smallSql>
<sourceSql>6</sourceSql>
<sqlSourceEnclosed>0</sqlSourceEnclosed>
<sqlsourceCopied>false</sqlsourceCopied>
<suppressComment>false</suppressComment>
<targetSql>0</targetSql>
<uppercase>0</uppercase>
<useTab>false</useTab>
</Value>
</Item>
</profileMap>
</SQLprofiles>

Similar Messages

  • Got a code for breaking dawn downloaded it and now it won't go on my nano touch

    got a code for breaking dawn download that works with itunes downloaded and now it won't go on to my ipod nano what cann i do

    What iOS is on the iPod? The app requires 3.0 and later. Was the app purchased with the same iTunes account as the other apps on your iPod?

  • My dream of a perfect code formatter

    I want to share with you my dream of what I consider a perfect code formatter:
    Have you ever used an if statement with lots of conditions?
    if (((condition1 && condition2) || condition3 || condition4) && condition5) {
    Have you ever created a method with parameters composed by large strings?
    method(AClassWithLargeNameLikeThis aParameterWithSuggestiveNameButAlsoLarge, AnotherClassWithLargeNameLikeThis anotherParameterWithSuggestiveNameButAlsoLarge, OneMoreClassWithLargeNameLikeThis oneMoreParameterWithSuggestiveNameButAlsoLarge) {
    And so on...
    I think it´s time to develop a better code formatter, with improved "GUI features". I mean, what if a "compressed if statement", and then when you click on this compressed if statement a "GUI window" appears, showing to you all the conditions defined in this if stamentent, in an very well organized way?

    prometheuzz wrote:
    jim.jones wrote:
    duffymo wrote:
    i think it's time to write smart code.It doesn´t have anything to do with "smart code". There are times in which you should write an if statement with many conditions. Which can, without a doubt, be written in a different, easier to understand, alternative.No. There are times in which you can´t do that. And I am affirming that. Maybe in an "immutable" system, or in a "semi-immutable" system, in which just few changes are done, you can rewrite the code in order to be easier to understand. But, do you know what I do everyday? I work as a programmer at a financial company. Business rules change all the time, and you have to adapt the system according to those changes
    There are times in which you do not have other better alternatives. If you never wrote such an if statement, I´m sorry for what I´m gonna say, then I believe you´ve never developed a complex system in your life yet.Ah, I see: so someone who doesn't write (or has never written) an if statement with a lot of expressions in it, couldn't have written a "complex system"?Let me rephrase: I was absolutely wrong, if my phrase is set apart. But there is a context, the context of this thread, in which my phrase should be placed to make sense. I just said that because I thought the one who said "it´s time to write smart code" was thinking that an if statement with lots of conditions is absolutely unnecessary, and it never can be written. Are you happy now?
    Let me guess: your definition of a "complex system" (whatever that is) is something that exceeds 3000 lines of code? Or some application that uses at least 8 design patterns?No. From where do you concluded that?
    jim, you're already making an @ss of yourself here in your very first post!What´s wrong in my vert forst post?
    >
    Don´t get me wrong, please. I´m sorry, again.You are wrong.Let me guess. Are you having a bad day?

  • ABAP code to break furthur Query execution

    Hello,
    I need a simple piece of ABAP code for the following purpose. When I run my query, I get the variable input pop-up. Incase I dont enter any values for the variables, the ABAP code should break furthur execution of the query. Is this possible and how??
    Pls Help.
    Thanks,SD

    Hi,
    The following code will help you, there is one variable ZVAR, it is user input variable on 0CALDAY, if user won't give any input it will take System date else it will process user input Date.
    Note: Write this code at the end of the ENDCASE. i.e. below
    IF i_step = 3.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZVAR'.
              CLEAR: l_s_range.
         IF loc_var_range-low EQ '' or
            loc_var_range-high EQ ''      
               l_s_range-low = sy-datum.
               l_s_range-high = sy-datum.
            l_s_range-sign = 'I'.
               l_s_range-opt = 'BT'.
               APPEND l_s_range TO e_t_range.  
            ELSE.
               l_s_range-low = loc_var_range-low.
            l_s_range-high = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            ENDIF.
    ENDIF.
    Thanks
    Reddy

  • ABAP Code Formatter

    Hi,
    I want a code formatter  for ABAP code which will look afte proper alignment of every staement as well as indentation according to my requirements. Pretty printer was used but the format is not as expected.
    Can anyone help.?

    Hi,
    Im afraid there is no other tool than Pretty printer available, so unless you want to write you own tool for formatting the source code, you'll have to stick to the Pretty printer
    Personally I find the Pretty printer Indentation and Keyword uppercase quite sufficient, and I don't see much point in having some special formatting - the next developer might use the Pretty printer on your code and your formatting is gone anyway...
    regards,
    Stano

  • Code Formatter

    I want to do a code formatter for COBOL , but have no idea how to do it. I want to plug it in eclipse (but that is the easy part ) . I was wondering if anyone has ever
    done or at least has an idea how to do the formatter. Not specifically for COBOL, any language will be great to know. If anyone has any information where i can find something on the topic ? :)
    Thank you in advance !

    I have no idea what you're asking, then. You want to know if someone has tried to write a code formatter, but one which is very very simple?
    Generally speaking, a code formatter is going to have to know at least some of syntax rules for the language it's formatting. So it will probably be at least as complex as a simple parser.
    Though perhaps some formatters are implemented as a collection of regular expression heuristics, or the like. Dunno.
    You might also want to look at Emacs or Vim syntax files.

  • Code formatter problem

    The code formatter handles the character sequence
    opening-bracket i closing-bracket
    as "start italic".
    But this is a very common idiom in Java code samples for  accessing an array by index. Thus all these Java code samples get damaged by this formatting.
    Can we fix the code formatting?
    Armin

    That's what I do but not every poster is aware of that before posting code. The bad thing is that not only the formatting, but that the code gets damaged.
    A fix could be to disable the italic tag inside a code tag.
    Armin
    Message was edited by: Armin Reichert

  • Code formatter does not work like in Luna

    I am using this code formatter: https://github.com/libgdx/libgdx/blob/master/eclipse-formatter.xml
    It seems to be broken in Mars. It's not that you can't import it, but it behaves differently from Luna. The major aspect that I have noticed is that while in Luna the following code looks like this:
    removeButton.addListener(new ClickListener() {
    @Override
    public void clicked (InputEvent event, float x, float y) {
    editor.remove();
    in Mars it looks like this:
    removeButton.addListener(new ClickListener() {
    @Override
    public void clicked (InputEvent event, float x, float y) {
    editor.remove();
    Although this might seem minor just looking at it like this, the difference ruins commits because of how many places this change occurs. I haven't been able to find the setting to change it back, in Mars, to the way it works in Luna. Just for extra clarification, I am importing the exact same formatter to Luna and Mars, getting those respective results.

    I'm not allowed to use links, so please visit stackoverflow and open /questions/31073603/eclipse-4-5-java-formatter-changed
    A workaround is described.

  • Powershell code to break a page inheritance:

    Hi All,
    Powershell code to break a page inheritance.
    Thanks
    AdityaDugyala
    adityadugyala

    $mysitename = "http://yoursite.com/whatever"  
    $web = get-spweb -identity $mysitename # Get the site collection
    $list = $web.Lists["Name Of Library To Break"]
    $list.BreakRoleInheritance($true)
    $false means to start with a clean slate, ie no permissions.  $true means to copy the existing inherited permissions and then break.
    Rob Schifreen SharePoint 2010 Admin University of Brighton, UK

  • JSP code formatter

    Hi All, I'm looking for a JSP / HTML code formatter tool. It would be great if its a plugin to WSAD. Thnx

    Try this all-JSP version. It works for me:
    <%@ page import="java.text.*, java.util.*" %>
    <%@ page contentType="text/html; charset=UTF-8" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
    </HEAD>
    <BODY>
    <%
         Locale loc = new Locale("en", "IE", "EURO");
            NumberFormat formatter = NumberFormat.getCurrencyInstance(loc);
            String str = formatter.format(200);
    %>
    <%=str%>
    </BODY></HTML>Maybe that will narrow your problem down a bit. It sure looks like a problem with JSP not knowing your page is UTF-8, but why that might be true I don't know.

  • Forms 6i format code - code formatter

    Hi,
    Is there any code fomatter pluggin for forms 6i??? Or anything else in order to format code in forms 6i???
    Regards,
    Santiago

    surprisingly, I use toad formatter. you have to copy and paste from forms builder to toad, format and copy paste back it does a real good job. only two hickups, as toad formatter is plain sql, a chunk of pl/sql has to have a begin and end around it. toad won't format without a big/end. IT also does not like the word mode used in :system.mode
    So you have to comment out that line of code for the formatter to run.

  • ABAP in Eclipse, Code Formatter

    I've recently began using ABAP in Eclipse.
    One thing that bothers me is the default rules for how code is formatted (shift+F1 by default).
    Does anyone know if it's possible to define custom rules for this formatting as you can with Java in Eclipse?

    Hi Felix,
    Thanks for your reply!
    I did indeed check here but didn't find anything relevant. There are only two very limited options available. One regarding indentation and another that controls the case of variables and keywords.
    What I'm specifically looking for (what I don't think we can do yet!) is a way to define my own rule-set for the formatter as you can in other IDE's. For example, using eclipse with Java, I can define a rule that will make { or } always move to a new line when present. Or for example, I can have the formatter always chain together similar variable declarations.

  • Flash-style Dreamweaver code formatter?

    Is there some formatter I can use to visually clean up my
    code in the same way that flash indents certain tags? Maybe a html
    text editor someone can recommend or even something hidden within
    dreamweaver?
    Thanks

    COMMANDS Apply Source Formatting
    "15266" <[email protected]> wrote in message
    news:e69euq$3ek$[email protected]..
    > Is there some formatter I can use to visually clean up
    my code in the same
    > way
    > that flash indents certain tags? Maybe a html text
    editor someone can
    > recommend
    > or even something hidden within dreamweaver?
    >
    > Thanks
    >

  • Equivalent code for % break;  % in JSTL....... ??????

    Hi,
    Does anyone know the JSTL equivalent of break; to break out of a loop?
    My requirement:
    I have to loop through a collection of objects. If a condition is satisfied, I need to set the values and break out of the loop.
    P.S: Scriptlet <% break; %> doesn�t work.

    There is currently no equivilant to 'break' in JSTL. You have several alternatives:
    1) within your <c:forEach>, set a flag variable that is set when your 'break' condition occurs. Only process items before this flag is set. The obvious drawback to this is that you will continue to iterate over a Collection when there is no work to do. If your collections are small, this shouldn't be too bad of an idea.
    2) Have your model/controller prune the collection before it gets to your JSP. This way, the collection is guaranteed to only contain items that you are concerned with processing.

  • Flex Builder/Eclipse code formatter plugin

    I came across
    FlexFormatter
    today after searching far and wide. Installation is a wizz and
    formatting options are customizable. Thought I'll give a heads up
    on the forum since a search for "code formatting" turns up nothing
    And, no, I'm not the publisher

    Jason,
    Yes you still need to purchase - you can install the product
    as a full install, or as an eclipse plug in. Trying the 30 day
    trial for getting your feet wet is the only option currently. Take
    advantage of free training from total training:
    http://www.totaltraining.com/Store/online_adobe_login.aspx
    Cheers,
    David

Maybe you are looking for