Remove the space between the lines of code
Somehow, a space appeared between every line of code on a file, that I'm working on. How to remove these spaces using find and replace in Dreamweaver CC?
Try
Tags: Dreamweaver
Similar Questions
-
How to remove the lines of code at the level of the site with different content?
How can I remove the same lines of code at the level of the site?
I want to delete all of the code line up to 4000 pages 50 - line 80, but the lines do not contain the same code can not use 'find and replace '.
Any ideas would be appreciated - thanks.
SED
http://www.Panix.com/~ElfLord/UNIX/sed.html
Can you show us 2 examples of code to remove?
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB -
Hi guys
I created a dynamic .bat file created inside java and copy it to a location and managed through fileObj.execute ();
Example of
-------------------
var line1 = 'some code ";
var line2 = 'some code ";
myCode var = line 1 + line 2;
var myFileC = new file
myFileC.open ('w');
myFileC.write (myCode);
myFileC.copy ("some location\file.bat");
myFileC.close ();
Run the .bat file
batFile var = new file ("of the location\file.bat");
batFile.execute ();
Now .bat file is successfully executed but the content of this file created bat shows up to extend in script by removing all my code above...
I have to cancel to do back whenever I run and sometimes accidentally I saved it lose all the code.
can someone help with this problem?
Simply change it to this:
var myFileC = new File ("some location\file.bat");
myFileC.open ('w');
myFileC.write (myCode);
myFileC.close ();
-
Hi guys
Creating new files .txt in extendscript thru new file returns results by removing all the code in extend script.
Example of
-------------------
var fPerCode = 'hack ';
var myFileP = new File($.fileName);
var myFilePtS = myFileP.parent.fsName.toString ();
myFileP.open ('w');
myFileP.write (fPerCode);
myFileP.copy(myFilePtS+"\\"+"Mytools_icons"+"\\"+"name.txt");
myFileP.close ();
Alert ("path to the fullper.bat file" + "\n"+myFilePtS+"\\"+"Mytools_icons"+"\\"+"name.txt");
If you run the above code, you see the result by disabling all of the code above.
can someone help with this problem?
You have a problem that you are writing your own script file and then doing a copy...
You also toString() of unnecesery and deformities (+).
Here is a fix your code:
var fPerCode = 'hack ';
var myFileP = new File($.fileName);
var myFilePtS = myFileP.parent.fsName;
var myNewFile = new File (myFilePtS + "\\Mytools_icons\\name.txt");
myNewFile.open ('w');
myNewFile.write (fPerCode);
myNewFile.close ();
Alert ("path to fullper.bat file\n" + myNewFile.fsName);
-
remove the line spacing of a string
In the attached VI, I expected my output to a long chain, but instead, it's a chain with what looks like inserted line breaks. This is my output looks like:
xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx
and what I want is:
xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
Is there an easy way to remove the line breaks?
Thank you
Just do a "find and replace String" with LF as search string, empty string (or probably a space if necessary) as string to replace and replace all instances set to true.
Hope this helps
-
remove the line in dataGrid + button
Hello
I try to add a button in a DataGrid and give it a value from the dataProvider in Flex
For example, I have a dataGrid that displays my data and I added a button 'delete' that, once selected needs to get the ID of the selected line in order to remove the line of correct dataGrid / selected etc...
I've included the button in the DataGrid as a component which is fine, but I'm unable to assign the key a value etc.
< mx:DataGrid id = "testDG" dataProvider = "..." ">
< mx:columns >
< mx:DataGridColumn dataField = "a" headerText = "B" / >
< mx:DataGridColumn dataField = "b" headerText = "B" / >
< mx:DataGridColumn dataField = "c" headerText = "C" / >
< mx:DataGridColumn id = "deleteButtonCol" >
< mx:itemRenderer >
< mx:Component >
< mx:Button label = click on 'Remove' = "must call a function here and pass the row ID" / >
< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >
< / mx:DataGrid >
It is in a component object I think he cannot communicate with scripts outside this component...? It has something to do with 'flex coupling components' allowing them to communicate.
Can someone give me one advises on how to on this subject?
Thank you
Jon.
Yes, the code inside an element is in its own local scope. If you need get within reach of the DataGrid (at a higher level), use the property of the component "outerDocument". Some info here:
http://livedocs.Macromedia.com/Flex/2/langref/MXML/component.html
-
How remove the line by line by comparing to the first column?
Hello!
I have a problem - I need to remove the line by line, but the problem is, I know that the first COLUMN of the table is a PK.
To retrieve the NAME of the COLUMN that I use:
SELECT column_name, table_name FROM USER_TAB_COLUMNS WHERE column_id = 1 and table_name = c1.tmp_table_name;
But it does not somehow.
Below you can see my script (which has not worked for now):
declare
XXX varchar2 (100);
Start
C1 in (select table_name, tmp_tables tmp_table_name) loop
IMMEDIATE EXECUTION
' SELECT column_name in ' | xxx | "USER_TAB_COLUMNS WHERE column_id = 1 AND table_name = ' |" ' || C1.tmp_table_name | " ' ;
immediate execution
"start."
for c2 in (select * from ' | c1.tmp_table_name | start loop ')
Insert into ' | C1.table_name | "values c2; delete from ' | C1.tmp_table_name | 'where ' | xxx |' = c2.' | xxx |'; exception: when other then null; end; end loop; end;';
end loop;
end;
P.S. The Inserts work perfect. I have a problem with deleting lines that are in c1.table_name, of c1.tmp_table_name (the two tables have the same structure, PK, always), because I have the names of columns different another tables which are PK. (for example: K, ID, NS and so on) Please help me to write the correct script.
For example this will be for the first line recovered as:
Start
C1 in (select table_name, tmp_tables tmp_table_name) loop
immediate execution
«Start for c2 in (select * from ' |)» C1.tmp_table_name | Start loop ')
Insert into ' | C1.table_name | "values c2; delete from ' | C1.tmp_table_name: ' where K = c2. K; exception: when other then null; end; end loop; end;';
end loop;
end;
This script works perfectly. But I have many other tables with different PK - K No.Solution with the logging of errors table
-- create the error-logging table CREATE TABLE tbl_MergeErrors ( Stamp TIMESTAMP(3), TableName VARCHAR2(30), KeyColumn VARCHAR2(30), KeyValue VARCHAR2(4000), ErrorCode NUMBER(5), ErrorMsg VARCHAR2(4000), CONSTRAINT pk_MergeErrors PRIMARY KEY (TableName, Stamp) USING INDEX ) / -- procedure to insert errors CREATE OR REPLACE PROCEDURE LogMergeError (pTableName IN VARCHAR2, pKeyColumn IN VARCHAR2, pKeyValue IN VARCHAR2) IS PRAGMA AUTONOMOUS_TRANSACTION; -- you couldn't insert SQLCODE or SQLERRM directly into a table (ORA-00984) nSQLCODE NUMBER(5) := SQLCODE; vcSQLERRM VARCHAR2(4000) := SQLERRM; BEGIN INSERT INTO tbl_MergeErrors (Stamp, TableName, KeyColumn, KeyValue, ErrorCode, ErrorMsg) VALUES (SYSTIMESTAMP, RTrim( SubStr( pTableName, 1, 30)), RTrim( SubStr( pKeyColumn, 1, 30)), SubStr( pKeyValue, 1, 4000), nSQLCODE, vcSQLERRM); COMMIT WORK; -- if an error occured here, then just roll back the autonomous transaction EXCEPTION WHEN OTHERS THEN ROLLBACK WORK; END LogMergeError; / -- create the tables and insert test-data CREATE TABLE TMP_TABLES ( TABLE_NAME VARCHAR2(200), TMP_TABLE_NAME VARCHAR2(200), CONSTRAINT TMP_TABLES_X PRIMARY KEY (TABLE_NAME) ) / CREATE TABLE TMP_KL002 ( K VARCHAR2(40), N VARCHAR2(200) ) / CREATE TABLE TMP_TABLE1 ( NS VARCHAR2(40), N VARCHAR2(200) ) / CREATE TABLE KL002 ( K VARCHAR2(40), N VARCHAR2(200), CONSTRAINT PK_KL002 PRIMARY KEY (K) ) / CREATE TABLE TABLE1 ( NS VARCHAR2(40), N VARCHAR2(200), CONSTRAINT PK_TABLE1 PRIMARY KEY (NS) ) / INSERT INTO TMP_TABLES (TABLE_NAME, TMP_TABLE_NAME) VALUES ('kl002','tmp_kl002'); INSERT INTO TMP_TABLES (TABLE_NAME, TMP_TABLE_NAME) VALUES ('table1','tmp_table1'); INSERT INTO tmp_KL002 (K, N) VALUES ('00', 'none'); INSERT INTO tmp_KL002 (K, N) VALUES ('07', 'exists'); INSERT INTO tmp_KL002 (K, N) VALUES ('08', 'not assigned'); INSERT INTO tmp_table1 (NS, N) VALUES ('2000', 'basic'); INSERT INTO tmp_table1 (NS, N) VALUES ('3000', 'advanced'); INSERT INTO tmp_table1 (NS, N) VALUES ('4000', 'custom'); COMMIT WORK; -- to test, if it works correct when primary key values exists before INSERT INTO KL002 VALUES ('07', 'exists before'); COMMIT WORK; -- check the data before execution SELECT * FROM TMP_KL002 ORDER BY K; SELECT * FROM KL002 ORDER BY K; SELECT * FROM TMP_TABLE1 ORDER BY NS; SELECT * FROM TABLE1 ORDER BY NS; -- empty the error-logging table TRUNCATE TABLE tbl_MergeErrors DROP STORAGE; -- a solution DECLARE PLSQL_BLOCK CONSTANT VARCHAR2(256) := ' BEGIN FOR rec IN (SELECT * FROM <0>) LOOP BEGIN INSERT INTO <1> VALUES rec; DELETE FROM <0> t WHERE (t.<2> = rec.<2>); EXCEPTION WHEN OTHERS THEN LogMergeError( ''<1>'', ''<2>'', rec.<2>); END; END LOOP; END;'; BEGIN FOR tabcol IN (SELECT t.Tmp_Table_Name, t.Table_Name, c.Column_Name FROM Tmp_Tables t, User_Tab_Columns c WHERE (c.Table_Name = Upper( t.Tmp_Table_Name)) AND (c.Column_ID = 1) ) LOOP EXECUTE IMMEDIATE Replace( Replace( Replace( PLSQL_BLOCK, '<0>', tabcol.Tmp_Table_Name), '<1>', tabcol.Table_Name), '<2>', tabcol.Column_Name); END LOOP; END; / -- check the data after execution ... SELECT * FROM TMP_KL002 ORDER BY K; SELECT * FROM KL002 ORDER BY K; SELECT * FROM TMP_TABLE1 ORDER BY NS; SELECT * FROM TABLE1 ORDER BY NS; -- ... and also the error-logging table SELECT * FROM tbl_MergeErrors ORDER BY Stamp, TableName; -- of couse you must issue an COMMIT (the ROLLBACK is only for testing ROLLBACK WORK; -- drop the test-tables DROP TABLE TABLE1 PURGE; DROP TABLE KL002 PURGE; DROP TABLE TMP_TABLE1 PURGE; DROP TABLE TMP_KL002 PURGE; DROP TABLE TMP_TABLES PURGE; -- you shouldn't drop the error-logging table, but I use it to free up my db DROP TABLE tbl_MergeErrors PURGE;
Greetings, Niels
-
I need script to remove the line with 2 points, another script to remove next lines
I need script to remove the line with 2 points, another script to remove next lines of two scripts needed help please
Thanks in advance
Concerning
Lakshmiganth
Scroll through each pathitem and look at the length of his pathPoints group. If the length is equal to 2 and then use the remove() method to remove it. For example (this is rough, off the top of my head):
var lines = new Array();
for (i = 0; I have< app.activedocument.pathitems.length; ="" i++)="">
If (app.activeDocument.pathItems [i].pathPoints.length == 2) {}
Lines.push (App.activeDocument.pathItems [i]);
}
}
for (i = 0; I have< lines.length; ="" i++)="">
Lines [i]. Remove();
}
-
How can I remove a space between the tables?
In dreamweaver, there seems to be no space, and the page is fine, but when I go into
Internet explore there is a gap between the tables. I want my image to be
at the bottom of my table, based on the footer.
I tried for hours to solve this problem and I can not, there is always a space between my image of HR helpline and my footer.
I put all the borders and spacing between cells to 0, but nothing seems to work.I have not yet my web site online, so can not tell you what the URL, but when I view source in internet Explorer this is the code:< td bgcolor="#FFFFFF"> </td><td width="430" height="200" align="center" valign="bottom" bgcolor="#FFFFFF"> <!-InstanceBeginEditable name = "EditRegion2"->< p > <img src=".. "" / frustrated helpline.jpg ' alt="HR helpline" width="331" height="282" border="0" longdesc="" "http://HR telephone helpline" / ><! - InstanceEndEditable - >< /td></ tr ></ table >< table width="900" border="0" align="center" cellpadding="0" cellspacing='0'>< tr bgcolor="#FFFFFF">< td valign="top"> <img src="images/Core HR foot 900.jpg Web" width="900" height="81" alt="london surrey berkshire kingston" longdesc="""http://footer"" " / > < /td></ tr ></ table >Thanks if anyone can help, I'm really new to this.HelenAdd the CSS rule to remove the border from the image
IMG
{border-style: none;}
} -
Remove the line breaks in the HTML Source Code
Is it possible to remove all line breaks in the code source HTML generated by Dreamweaver? After using the Dreamweaver design view window, I want to assure you that all the source code of the html page I created is going on a single line. Is there a simple way to remove all line breaks, or tell Dreamweaver to create the HTML code on a line?Ki Song says:
> Is it possible to remove any line break in the HTML source code
> generated by Dreamweaver? After the use of the design view window in
> Dreamweaver, I want to assure you that all the source code for the
> goes from html page I created on a single line. Is there an easy way
> to remove all breaks online or tell Dreamweaver to create the HTML code
> code on a line?http://www.TJKDesign.com/articles/whitespace.asp
HTH,
--
Thierry
Articles and tutorials: http://www.TJKDesign.com/go/?0
Perfect FAQ page: http://www.TJKDesign.com/go/?9
Templates CSS - P: http://www.TJKDesign.com/go/?1
CSS tabs menu: http://www.TJKDesign.com/go/?3 -
How to reduce the space between two lines in a panelformlayout who is lain in the panelbox?
Mr President.
I have a panelbox in which I put a panelformlayout which have two rows as below
I want to reduce the space between inputfield first and second inputfield.
Thus, this second inputfield closer to the first inputfield
Respect of
You can define simple = true in the first entry field (name), sorround who on the ground with panelLabelAndMessage and add the second inputField (address) about to end of panelLabelAndMessage.
In fact, you can add more or less space with spacer between them and panelGroupLayout with horizontal layout as a facet of the end child
-
Remove the line with alert button
Hello
I have a table which can add and delete rows dynamically. An alert must be added to the button delete what I've done. The works warning, but when you select OK on the alert line is not deleted.
It would be the right way to accomplish this?
I'm not a programmer and now wondering if my edit code is wrong or there is an alternative solution.
Thank you
This is the code I have for the button Delete.
Form1. FSE_1.Pre_EX. Buttons. Remove::click - (JavaScript, both)
CMSG var = "continues with the action underway will remove all entries in cell in this row.
CMSG += ' \n\nDo you want to continue?
var nRtn = app.alert (GSMC, 1, 1, 'Question Alert Box');
if(nRtn == 4)
{If (Table1._Item.count > 1)
Table1._item.removeInstance (Table1._Item.count - 1);
Console.println ("the answer is Yes");
}
Another yew (nRtn is 3)
{/ / No answer}
Console.println ("the answer is no");
}
on the other
{//Unknown response
Console.println ("the response was something other than yes/no:"+ nRtn ");
}
------------------------------------------------------------------------------------------ ----------------------------------
This is the code I have for the button Delete before adding the alert that worked.
Form1. FSE_1.Day_1.buttons.Remove::click - (JavaScript, both)
If (Table1._Item.count > 1)
Table1._item.removeInstance (Table1._Item.count - 1);
The way I understand how it works at the moment, is that you remove the last line of the table... If you want to delete the line where is the button Delete, you should be removing the instance itself with its index...
rather than use the following line
Table1._item.removeInstance (Table1._Item.count - 1);
You should have something like this
'this' being button and tell me that you have a subform to remove and add the button
Table1._item.removeInstance (this.parent.parent.index); the first parent is the subform and the second parent is the line
I hope this helps!
-
have firefox open a strange thing happens when I increase the volume on my computer, the high and the low volume are the F11 and F12 keys if I press volume down on my toolbar and albums completely disappear? If I press volume up I suddenly a toolbar developer appear at the bottom of my screen streaming lines of code for what im page currently on
F12 is the default key to open the Toolbox of the integrated developer same as Ctrl + Shift + I
-
A clean reinstall will remove the OEM Activation code on my computer?
If a Windows 7 Ultimate Upgrade activation code has been used on a computer, a few months earlier, could set up a re-use of the drive of the person and the activation code to do a cleaning on the same computer? Or would be the clean install remove the Activation Code defined on this computer?
"PChoi" wrote in the new message: * e-mail address is removed from the privacy * _______________7...If a Windows 7 Ultimate Upgrade activation code has been used on a computer, a few months earlier, could set up a re-use of the drive of the person and the activation code to do a cleaning on the same computer? Or would be the clean install remove the Activation Code defined on this computer?I'm not quite sure what you mean.An upgrade installation effectively removes all the evidence that it was the previous operating system. If the previous license was an OEM one, it remains valid for this computer, in case you want to revert to the original OS.If the previous operating system was a retail one, it is part of the upgrade and can be used either in another installation on this machine or on another machine, unless the upgrade is removed (i.e. formatted), date on which the license is released and made available again. -
A table does not remove the lines
I created a tabular presentation. I select one or more lines with the line selector. I click the button Delete and you get a warning/confirmation message. I select OK, then refresh the page. I selected the lines are always present.
I edited the multi-rang button - remove and found that Action of database has been set no Action database, so I changed it to Action SQL DELETE.
Still not delete.
What Miss me?
Hi mdwyer,.
I edited the multi-rang button - remove and found that Action of database has been set no Action database, so I changed it to Action SQL DELETE.
No need for the modification of database SQL DELETE action Action, it is correct with no Action from the database.
I created a tabular presentation. I select one or more lines with the line selector. I click the button Delete and you get a warning/confirmation message. I select OK, then refresh the page. I selected the lines are always present.
1. check that the request after clicking on delete...
For example
JavaScript:apex.confirm (htmldb_delete_message, 'MULTI_ROW_DELETE');
Here MULTI_ROW_DELETE is passing as request.
2. change your ApplyMRD process and check the status
When you press the button: no condition button
Condition type: request = Expression1
Expression 1: MULTI_ROW_DELETE
Check the request that you place the button Delete is same as a condition of the terms of the Expression 1 or not.
Or better, you can create examples on apex.oracle.com, which helps the user to study and solved the problem.
If your problem still persists, then try to recreate the form of tables and check.
Hope this helps you,
Reg
Maybe you are looking for
-
Apple Hello. Please help me. I have lock my icloud please help trying to open it. I don't remember the e-mail address that was used and I don't remember my password. Please help me. I believe in you.
-
Satellite A200 stops after the post
Hello. I replaced the motherboard that was dead with a used one on ebay, the user declares that it functioned very well. Anyway after that I set up everything, it starts for a few seconds and then stops.Then I tried connecting the Council, except in
-
Satellite L500 - check reinstalling Windows
Hi all. Although still primarily functional, Ive got several problems with my L500, I bought 2 years (win updater, Security Center, a bunch of stupid annoying small things that I have to scour the internet to answer accurately) so I decided to reinst
-
Reinstall Mac on imac (I don't have boot camp and os!)
HelloI have after buying an imac, I erase all the os configuration and know just have windows on imac (I have no os or boot camp) Now, I don't know how I have to re-system operating system. I want to again on the imac os... but can't... because my s
-
In the file open/create/replace bug
I found this problem in LabVIEW 2009. The Boolean indicator doesn't seem to work properly in the first snippet. It returns TRUE even with a valid path. With some trial and error, I found a work around that will work correctly at the moment. I just wi