Code formatting procedures
Hi,
I'm writing some HTML code that includes multiple elements nested together, such as:
<html><head></head><body>
<b>
<i>
<p>The 2009 Spring Schedule</p>
<table>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
</table>
</body>
</html>
Of course, these lines are not correctly formatted. I know if I press Enter that the auto-indent function will activate with the appropriate menu settings, but how can I format and indent code "on demand"? Thanks in advance for your assistance.
Probably the easiest way to give the code your preferred indenting is to set up a customised CodeSweeper using either the built in version or HTML Tidy. I think there's a supplied Tidy setting called Macromedia HTML Tidy Settings that would give you a good starting point.
Similar Messages
-
Tax Code in procedure TAXINN is invalid
Dear Sir,
Tax Code in procedure TAXINN is invalid
When from SD module our sales person is trying to release billing document to accounts through FV02 they are geting the above referred error message and the accounting document doesn't get generated and/or released.
They says that the error is in FI module but I am unable to resolve the issue.
Kindly guide
Thanks in anticipation and Regards
Chirag ShahHi,
in first Step check Condition record for your TAX code for the time period in which you want to use. Tcode FV11
Use proper Account key (OBCN)for the tax code in TAX procedure(OBQ3) TAXINN and use the appropiate Account which allows the tax code to be posted in GL using Account key(OB40).
Also check the nature of Condition Type(OBQ1) in Tax procedure.
Assign the Tax code to country also, follow the path .
SPROu2192logistics general u2192 tax on goods movementu2192 Indiau2192 Basic settingsu2192determination of excise dutyu2192condition based excise determinationu2192 Assign tax code to company code.
Regards
Arun -
My auto-indent and code formatting is not working.
Usually on dreamweaver CS5.5 my code (html) would indent my <div> tags and align them up with the end div </div>. Not only were the <siv> tags formateed but various of others tags were as well.
How Dreamweaver used to format my code:
<head>
<title>Example</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<body>
<div id="outside_container">
<div id="container">
<a href="#"><img src="images/logo.jpg" id="logo" /></a>
<ul id="menu">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
<ul id="right_menu">
<li><a href="#">t</a></li>
<li><a href="#">t</a></li>
</ul>
<img src="images/panel_home.jpg" id="panel" />
<div id="content">
<div class="column1">
<h2>Text</h2>
<p>Text Here</p>
</div>
Now it does not even format it so all of my code aligns on the left like so:
<head>
<title>Example</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<body>
<div id="outside_container">
<div id="container">
<a href="#"><img src="images/logo.jpg" id="logo" /></a>
<ul id="menu">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
<ul id="right_menu">
<li><a href="#">t</a></li>
<li><a href="#">t</a></li>
</ul>
<img src="images/panel_home.jpg" id="panel" />
Can anybody please help me?Did you try Edit > Preferences > Code Format > Indent?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Code Formating after Forum Software Upgrade
Hello SCN Forum Administrators,
it seems that all code formating which was done with the
[code]
Tags was not automatically converted during the Forum Software Upgrade. What can I do to correct my code in the Forum Topic Re: Display ALV GRID with PHP? The message was posted by myself but I can't edit it.
Best regards
GregorHi all,
the new forum version does contain a filter that can handle the old [code] tags. The problem was that we had to turn it off because it permanently ran into Stackoverflow errors and thus bringing the whole landscape into trouble.
Now we have to convert all the old [code] markup in all messages with the new {code} markup. We are currently testing this.
In other words: [code] is no longer supported, the usage of {code} is recommended.
Regards,
Michael -
Code formatting, indenting, and commenting
This question was posted in response to the following article: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-25a895a612e8e9b8c8e-7fff .html
MXML code formatting options are very limited in Flash Builder 4.5. Compare that to the vast amount of options you have to format Java code in Eclipse. I would expect more from a proprietary software.
-
Code formatting made thing worse
After CTRL+ALT+L (Code Reformat) in JDeveloper 11g, things got worse:
Eg.:
http://i.imgur.com/pEKtS.png
Normally it should like this (at least this is how other IDEs are reformatting code):
http://imgur.com/MRSW0
or this:
http://i.imgur.com/Dkyry.png
I've tried to fine-grain code formatting from: Tools -> Preferences -> Code Style but the results weren't satisfactory .
Does anyone know where i can find a Code Style profile .xml file that won't mess the looks of my code, just like the default one did ?Hi,
in 11.1.1.5, I quickly created
public void mytest() throws FileNotFoundException {
List credentialFiles = null;
for (File f: credentialFiles){
fis = new FileInputStream(f);
String name = f.getName();
new Departments(new Long(2236),
"Sales 33",
new Long(100),
new Long(200),
new EmployeesList());
}Then I hit ctrl-alt-l and the outcome s
public void mytest() throws FileNotFoundException {
List credentialFiles = null;
for (File f : credentialFiles) {
fis = new FileInputStream(f);
String name = f.getName();
new Departments(new Long(2236), "Sales 33", new Long(100),
new Long(200), new EmployeesList());
}Its not really what I would call worse
Frank -
Code Formatting Instructions for Developer Forums
Although this topic only applies to the two Developer forums, the need for some upfront code formatting instructions in those forums is desperate. There may be hundreds of threads which include one or more messages on this subject. In my case alone, I've posted at least a dozen messages each containing these three lines:
Paste your code here.
Of course a quick search of either Dev forum on the keys +code formatting+ will find the above right away, but those who need help the most don't know code requires special formatting so won't be making that search. For the same reason, neither the excellent instructions in the User Tips Library nor the pertinent threads in this forum are likely to be discovered before they're needed. The +Help & Terms of Use+ FAQ might seem to be a good place for the instructions, but this has been proposed so many times before I'm sure it will never happen. The need is confined to the Dev forums afterall.
I think the solution would be a permanent post (similar to +How to Post a new Topic+ in this forum) at the top of both Dev forums. I don't think most developers want to see instructions on any other topic at the top of the forums, but a brief note titled +How to Post Code+ might make everyone's life easier.
Assuming most of the other developers agree, how could we make this happen?Thanks so much for helping with this, Nubz!
Joerg's instructions are excellent. I refer to them often and I've had them bookmarked since I found Apple Discussions last year. The new Code section is great!! Very clear!
Now we just need to find a way to get users to that page. Our problem has never been with users who are interested enough in Apple Discussions to visit the Tips Library. The unformatted code is coming from first-time users--not necessarily novice coders, but programmers of all skill levels who aren't coming here to learn about the forums or relate to the community. These folks are focused on their current project, may have found no answers anywhere else, and arrive here with tunnel vision. Often there's a language problem as well.
The newly arrived OP will often start the thread with a page of unformatted code. Those of us with eyes used to filling in the missing brackets, indentation etc. can sometimes decypher the mess, but usually we need to give formatting instructions and ask the OP to repost. The frequency of this scenario has been increasing. Lately I've been posting those instructions almost once every day.
Of course that's a good sign! We've been giving good service down there and the number of newcomers seems to be reflecting that. A big percentage have turned into regulars, so I think we have a very healthy forum. It's just the formatting cycle gets old, and the time and bytes add up too.
My suggestion is this:
One yellow moderator announcement that stays in the first position on the topic page for both dev forums. The subject line is:
To format code: Paste your code here
The user doesn't even need to open the message. Only developers will see this. No change to the page header is needed. If the user does open the message, a link will be provided to Joerg's tips.
- Ray -
Is the code formatting buggy or is it just that I cannot seem to find the correct mix of settings? I hope it is the latter and that someone here may know how to get it
After setting the settings I think I want I get a simple SQL formatted like this.
{noformat}
select username
,sid
,serial#
from v$session
where sid = 11
and(status = 'ACTIVE'
or status = 'INACTIVE')
{noformat}Ignore the fact that the actual query may not be logical...
The first problem is that the different columns are lined up to the left and not indented lika I would like them to be.
The second (and much less important) is that the and/or are not indented like the keywords. I'd like to get the SQL to be formatted like this.
{noformat}
select username
,sid
,serial#
from v$session
where sid = 11
and(status = 'ACTIVE'
or status = 'INACTIVE')
{noformat}How can I make the code formatting result in the above SQL (especially the aligning of the columns)?Turloch,
Thank you for the reply. I figured this may be a bug, so it is nice to have it confirmed. I can live with it not being correct as long as a fix will show up eventually.
The problem with using tabs or large settings for space is that it causes other parts of PLSQL to look to spread out. One thing that happens is that the right justification of the keywords gets messed up. But I can make soem SQL look OK with it, but that is at the expense of getting other ones to not look good. For example if I get the columns to line up with a leading comma, the concatenation is not correct and vice versa. I also get SQL to look better, but then indentation in PLSQL is too agressive and looks very bad.
I would like to be able to set and/or to be set to be handled as keywords so they too can be right justified. Columns (whether or not concatenated or separated with a comma) should be possible to align with the column in which the first column starts.
While I'm at it, there seems to be an issue with the formatting of keywords such as inner join. I think inner too should be considered keywords so it can be right justified with other keywords. Same thing with subselects, they end up the the left of the right column of the keywords.
I think the formatting features are really good now. There is still room for improvement to be able to control it enough to make it look exactly like I want, but it is getting close and flexible enough to allow many different ideas of how the template should be to be configured.
Thanks,
Mathias -
Tax code in procedure TAXSG is invalid
Hi SD Experts
When the billing doc release to accounting getting error "Tax code in procedure TAXSG is invalid".
Material has MWST as tax condition, used sales order also MWST.
But the TAXSG procedure does not have this MWST, is this the issue?
Checked in FTXP for the tax code there is no MWST maintained for the TAXSG.
Condition record is maintained by VK11 but not FV11
Provide the soluion in detail
Thanks/karthikHi Karthik
Firstly , make sure that Tax Code has been created in the TAXSG tax procedure. Also make sure that the TAXSG procedure is assigned to the country.
Secondly also make sure , that the TAXSG procedure has MWST condition type.
Also check in CMR data that which country has been assigned to the customer.So make sure that the country that has been maintained in CMR data and the tax code is also be created in same country. Also make sure that the tax procedure TAXSG is also assigned to the same country
Regards
Srinath -
Reg. Tax code in procedure TAXINJ is invalid
Dear Friends
discournt related condition type is working and the Billing also release but if I use addition related condition the billing is saved but do not get release.
the following error occured
Tax code in procedure TAXINJ is invalid
Message no. FICORE704
Diagnosis
The tax code entered is not defined in the country for this company code.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
1. Check whether the required tax determination procedure is assigned to the relevant country. the Procedure field is in the detail screen.
2. Create a new tax code if required. ""
for discount I didn't create any tax code and condition in VK11 but working the same way I using positive type condition, it is not working that is unable to release, no accounting document created.
Pls advice
Rajakumar.KHi,
Please check the following configuration :-
1. Check the Tax code Assigned in the Condition Record of New Condition Type.
2. IMG > Financial Accounting (New) > Tax on Sales/Purchases > > Basic Settings > Assign Country to Calculation Procedure.
3. In FTXP , check the Tax Code assigned to the Country.
Best Regards,
Ankur -
Tax code in procedure TAXINJ is invalid
Hi Users
User try to print u2018Delivery Chalanu2019- 291 movt is used to return materials to vendor. Fyi. ZM001 is the Tcode- user getting a error message (Tax code in procedure TAXINJ is invalid) pl help asap.
Thanks & Regards,
SivaDear,
Just check FTXP -> Enter Country code IN
See if there are any tax codes crated.
There are two tax procedures
TAXINN
TAXINJ
If somebody deleted the tax codes.....
Also check in SPRO, whether the Tax procedure has been assigned to Country IN
Thanks -
Reg. Tax code in procedure TAXINJ is invalid during Billing release in VF0
dear friends
when I release the billing in VF02 I am getting the bellow error
"" Tax code in procedure TAXINJ is invalid
Message no. FICORE704
Diagnosis
The tax code entered is not defined in the country for this company code.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
1. Check whether the required tax determination procedure is assigned to the relevant country. the Procedure field is in the detail screen.
2. Create a new tax code if required.""
and my procedure is
100 0 PR00 Price ERL
350 0 ZMRP MRP Price ERL
400 0 ZMRD Discount % from MRP 350 MWS
450 0 ZBED Basic Excise Duty 400 EXD
500 0 ZECE Education Cess 450 EXD
550 0 ZSHE Sec.Higher Edu.Cess 450 EXD
555 0 CR Price 100
650 0 Sub total 450 550
700 0 ZCST IN A/R CST 555 650 MWS
725 0 ZVAT IN A/R VAT 555 650 MWS
750 0 Total 555 725
800 0 Sales Revenue 750
if there is any logi problem pls advice me.
we enter manualy the MRP Price and doing discount 45% from that.
Thanks in advance
Rajakumar.kHi
There are couple of things you need to check.
1. In FTXP, if rates have been maintained against the AR Condition Types correctly
2. In VK11, you have maintained the settings for condition type UTXJ, which is important for TAXINJ
3. In Customer master, you have assigned the Tax Classification Key in Customer Sales Area data
Regards
Sanil Bhandari -
Reg. Jurisdiction code for procedure TAXINJ should be 9 characters long
Dear Experts
I am getting the follwing error when I create purchase order.
" Jurisdiction code for procedure TAXINJ should be 9 characters long
Message no. FC279
Diagnosis
The tax jurisdiction code you have entered does not correspond to the predefined length for this calculation procedure.
System Response
Error message
Procedure
1st possibility
Enter the tax jurisdiction code in the predefined length.
2nd possibility
Change the predefined length for the structure of the tax jurisdiction code."
Pls help me.
Thanks
Rajakumar.KHi
For that you can solve through this way
Go through this T.code OBCO
There you can change the length of the Jurisdiction code
May be this information is useful to you
If you have any doubt feel free to ask
Regards
Surya -
How to put source code into procedure ?
let's suppose that we have a source code for store Schema like this schema that you can download it from follow Link :-
http://www.zshare.net/download/1322967884dcdbab/
and now I want to wrap it ,until get the plb file , and then no one can know the content of the schema source code , and as I know the ( procedure , function and package ) only could wrapped , so I tried to embed the source code in procedure , but the process failed Sad
Is there anyway to embed the source code schema into procedure until wrap the procedure later to get the plb file ?!1* select * from v$version
SQL> /
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I'm working in Windows XP SP2 , I use Oracle 10gr2 , I use forms6i
All what I want to know is :-
How we make normal Procedure like this style :-
CREATE OR REPLACE PROCEDURE proc_name
IS
BEGIN
EXECUTE IMMEDIATE ' here we will put the schema creation script , download it from that like ( http://www.zshare.net/download/1322967884dcdbab/ ) ' ;
end proc_name;
don't worry about the wrap operation , I will adjust it ..... but the important here .... how we embed the "schema creation script" after EXECUTE IMMEDIATE like in previous procedure ? -
Dreamweaver CS3 Code Formatting broken
Hello, I am experiencing a huge deal of frustration with the
way Dreamweaver improperly formats code. In particular, the UL / LI
tags do not format correctly. Here is what I am trying to achieve:
<ul>
<li>
TEXT
</li>
</ul>
Now this pattern seems to correspond exactly to the preview
that you see when you go to Preferences > Code Format > Tag
Libraries, select the LI tag and choose Line Breaks: Before,
Inside, After and Contents: Formatted and Indented.
I have done this. I have also manually checked the .vtm file
in username > Application Data > Adobe > Dreamweaver >
Configuration etc.... and it corresponds to what I have set in the
Prefs.
However, when I use Design View to create the unordered list,
OR even if I just TOUCH a properly formatted list in Design View,
everything gets squeezed onto one line. I get this sort of thing:
<ul> <li>TEST</li> <li>MORE
TEST</li> </ul>
Here is what I have tried unsuccessfully to date:
1. Prefs > Code Formatting > Edit Tag Libraries...
2. Prefs > Code Format > UNCHECK Do not include a break
inside TD tag (I know, that's for TD, but I'm just trying
everything(
3. Prefs -> line breaks (tried Unix, Windows)
4. Commands > Apply Source Formatting (messes up my entire
code by putting everything inside the BODY tag on one line - in
other words, my entire page goes on one line now!)
5. Automatic Wrapping After Column 76 - this one is really
stupid, it just does a HARD break on each line so when you turn it
back off you have to go in and manually delete all these hard
breaks now...
There's a bunch of other small things I have tried, but
needless to say, nothing appears to be working.
Has no one else experienced this? Can you get Design View to
properly format UL / LI tags? If so, then something on my computer
is messed. But when I look at code generated by DW on some of my
co-workers' computers, they also have the same problem - I just
guess their tolerance for crappy code is higher than mine.
I'm using DW 9.0 (CS3) build 3481.
Please help! I have no hair left on my head to tear out and I
may have to go further afield.... ouch!
Thanks,
TomI just checked on DW CS4 and it's working as expected. If I
change my LI
entry in the Tag Libraries to Line Breaks: Before, Inside,
After and
Contents like you, I get your desired effect. Moreover, it
doesn't revert -
or worse if any changes are made, whether in Design or Code
view. I know
this doesn't help you verify or correct your CS3 issue, but
at least you
know there is an upgradeable light at the end of the tunnel.
Best - Joe
Joseph Lowery
VP of Product Management, WebAssist -
http://www.webassist.com
Author, Dreamweaver CS3 Bible -
http://www.idest.com/dreamweaver/
"tomaugerdotcom" <[email protected]> wrote
in message
news:[email protected]...
> Hello, I am experiencing a huge deal of frustration with
the way
> Dreamweaver
> improperly formats code. In particular, the UL / LI tags
do not format
> correctly. Here is what I am trying to achieve:
>
>
> TEXT
> </li>
>
>
> Now this pattern seems to correspond exactly to the
preview that you see
> when
> you go to Preferences > Code Format > Tag
Libraries, select the LI tag and
> choose Line Breaks: Before, Inside, After and Contents:
Formatted and
> Indented.
>
> I have done this. I have also manually checked the .vtm
file in username >
> Application Data > Adobe > Dreamweaver >
Configuration etc.... and it
> corresponds to what I have set in the Prefs.
>
> However, when I use Design View to create the unordered
list, OR even if I
> just TOUCH a properly formatted list in Design View,
everything gets
> squeezed
> onto one line. I get this sort of thing:
>
TEST</li>
MORE TEST</li>
>
> Here is what I have tried unsuccessfully to date:
>
> 1. Prefs > Code Formatting > Edit Tag Libraries...
> 2. Prefs > Code Format > UNCHECK Do not include a
break inside TD tag (I
> know,
> that's for TD, but I'm just trying everything(
> 3. Prefs -> line breaks (tried Unix, Windows)
> 4. Commands > Apply Source Formatting (messes up my
entire code by putting
> everything inside the BODY tag on one line - in other
words, my entire
> page
> goes on one line now!)
> 5. Automatic Wrapping After Column 76 - this one is
really stupid, it just
> does a HARD break on each line so when you turn it back
off you have to go
> in
> and manually delete all these hard breaks now...
>
> There's a bunch of other small things I have tried, but
needless to say,
> nothing appears to be working.
>
> Has no one else experienced this? Can you get Design
View to properly
> format
> UL / LI tags? If so, then something on my computer is
messed. But when I
> look
> at code generated by DW on some of my co-workers'
computers, they also
> have the
> same problem - I just guess their tolerance for crappy
code is higher than
> mine.
>
> I'm using DW 9.0 (CS3) build 3481.
>
> Please help! I have no hair left on my head to tear out
and I may have to
> go
> further afield.... ouch!
>
> Thanks,
>
> Tom
>
Maybe you are looking for
-
HT5622 How do I have two apple ID's or two itune accounts on one computer?
My wife and I want to keep our iTunes separate so we have our own pics and music on our own phones. How do we sync them without combining them?
-
Filtering xml records from CLOB database column
Hi, I have a xml data stored in a CLOB field in database. I need to retrieve the contents that match my filter criteria. Say my xml is like below, <ROOT> <EMP> <EMP_NO>1</EMP_NO> <SAL>100</SAL> </EMP> <EMP> <EMP_NO>2</EMP_NO> <SAL>200</SAL> </EMP> <E
-
How to test using VA03(How to customize it?)
Hi all, I am working on VA03. And i got a test case using VA03. But i don't know why the VA03 konw which program and form that i made will be used. (How to cumtomize VA03??) Can you help me? Best regard.
-
Getting error message 'unable to sync files'
I have viewed possilbe reasons for this error but none of the information tells me what to do about it. All there is is the constant pestering of a window that comes onto the screen from the right hand side saying 'unable to sync files' For instance
-
What id my scratch off code doesn't allow me to redeem? Says "invalid code"
When I input my scratch off code it says "invalid code" and I've tired four times, my mom twice!