Use gvim to edit text areas and get it to use javascript.vim syntax file

I have had a lot of trouble with javascript and editting files via apex's "javascript" sections in the page.
The font in firefox did not distinguish various braces well enough for me. I kept accidentally mixing curly braces and parens... And I would now and then put the plsql concatenate operator || instead of the javascript +. Bleah! There are SO many ways to completely break javascript. And the whole javascript herd goes down when just one little function anywhere in there has an errant brace or quote. So I started resenting not using my customary text editor gvim. I have to have this stuff colorized and have showmatch turned on!
So anyway I found that you can edit textareas with gvim, I don't know if this is commonly known or not so
I thought I'd mention it. Or you can use whatever editor you want.
I only tried this on windows but theoretically it works on other operating systems modulo you
adjusting the shell details appropriately.
First of all install the"It's all text!' firefox extension and restart firefox.
then create a batch file something like this:
(NB: don't call a batch file the same name as an executable. That can cause pesky loops :-)
gvimrun.bat:
c:\vim\vim73\gvim.exe %1 -c "set filetype=javascript"
Note the pathname to gvim.exe needs to be customized. Note the parameter for passing the first argument along. (%1) The set filetype is telling it effectively to use the c:\vim\vim73\syntax\javascript.vim file.
so then when you bring up your page in apex , when you put the mouse cursor right below the
down arrow of the vertical scrollbar on the rhs of the textarea, you should see a little blue button
that says "edit". Then right click and choose preferences. Direct it to your batch file.
And if all is well it will work and invoke gvim with syntax coloring. Which makes it just a tiny bit less likely to really flub it.
Now if anyone else wants to pick up the baton and figure out how to get more than one syntax
in effect such as javascript and jquery? I did find a jquery.vim file out there. ...
Now that we know how to do this if someone knows some really super great javascript /jquery
editor that might be way better than gvim I would definitely consider that! Javascript is easy to screw up
Edited by: lake on Jan 2, 2011 11:34 AM

Hi Mathan. Here is something i have trying to do. This vi does not write it correct... and have I done something wrongly or "stupidly" in code
Problems:
-Second row is inroccet
-If i know that device returns array where is 10 elements. Can I trust that and just return 10 elements from array and changed it to string?
-Can I trust queue in this way?
I think hardest in labview coding is that you dont know what kind component you should use and what is the right way to use them.
Attachments:
array to file.vi ‏21 KB

Similar Messages

  • Using automator to edit text - find and replace

    Hello. I have a huge database of tv repair tips. Unfortunately, when i started to accumulate the tips I put them in an html table like this:
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">36XBR400 </td>
    <td class="NoiseDataTD">DEAD - NO H.V. - INTERMITTENT START UP - 'D Board' NG. </td>
    <td class="NoiseDataTD">IC6501, MCZ3001D 0r MCZ3001DB(8-759-670-30) - >>>HARD TO REPLACE!---tip:CUT PINS FROM TOP THEN PULL OUT SLOWLY </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">63A </td>
    <td class="NoiseDataTD">INSUFFICIENT HEIGHT </td>
    <td class="NoiseDataTD">CHECK C522 REPLACE IF PARTIALLY OR COMPLETELY OPEN </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2 </td>
    <td class="NoiseDataTD">Int. loss of pix (HV) after 10 Min. Audio Normal.Pwr up again & OK for 10Min </td>
    <td class="NoiseDataTD">H Protect Circuit. D521 (7.5 zener) ECG5015 </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2D </td>
    <td class="NoiseDataTD">VERTICAL HEIGHT PROBLEM </td>
    <td class="NoiseDataTD">BAD YOKE: BAD YOKE WINDINGS MEASURED 6 OHMS, SHOULD BE CLOSE TO 9 OHMS </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2W </td>
    <td class="NoiseDataTD">Negative main pix, pip video ok. Customer heard pop then pix went dark. </td>
    <td class="NoiseDataTD">IC355. CSA2131S </td>
    </tr>
    Now, I want to input the tips into a MySQL database with an insert statement like:
    INSERT INTO `otips` (`id`, `brand`, `model`, `problem`, `solution`, `user`, `date`) VALUES (NULL, UCASE('SONY'), UCASE('KP-53XBR200'), UCASE('CONVERGENCE OFF'), UCASE('REPLACED CONVERGENCE IC''S STK392-020 AND PICO FUSE PS5007 3.15 AMP open'), '0', '0000-00-00');
    I've been all over the help files and different websites with tutorials and I cannot figure out how to do this using automator. Could anyone tell me if this can be done with automator and perhaps point me in the right direction.
    Thanks,
    daniel
    IMac Intel Core Duo   Mac OS X (10.4.8)  

    Are you familliar with regular expressions? If you are, then you can create a shell script and incorporate it into your workflow. Or you could use bbedit or textwrangler from barebones.com to search and replace in multiple files.

  • HT4623 My texts have stopped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem contin

    My texts have stoipped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem continues.

    Have you talked to your carrier (or your friend to his)?  Could be an issue at their end.

  • When I type I cannot add text when I select the text area and double click. Why?

    When I type I cannot add text when I select the text area and double click. Why?

    Premiere Elements 11  trial version for macMac computer photos uploaded to the timeline just finetrying to make a new title, streaming or in a framedouble clicked on the text in the box and nothing shows up when I type on my keyboard. I can delete the words that are there but not type in new ones. I selected the type and size, etc.
    Thanks if you can figure it out. I gave up!
    I may just un-install it all together if I can't get to work.Joanne
    Date: Thu, 9 May 2013 17:59:08 -0700
    From: [email protected]
    To: [email protected]
    Subject: When I type I cannot add text when I select the text area and double click. Why?
        Re: When I type I cannot add text when I select the text area and double click. Why?
        created by A.T. Romano in Premiere Elements - View the full discussion
    Joanne Murray J2 What version of Premiere Elements are you using and on what operating system (including 32 or 64 bit) is your Premiere Elements installed? Forgive the questions if you have been there and done that, but I do not want to take anything for granted that might hinder a speedy resolution to your issue. Are you opening an already created title that is sitting on the Timeline in order to edit it in the Titler or are you trying to create a new Title (Default Text or other)? Do you know how to work with the Selection Tool and Type Tool in the Titler? Once I know what version of Premiere Elements that you are using, I will give you specific how to details. Thanks. ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5307494#5307494
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5307494#5307494
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5307494#5307494. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can I change a PDF document to have an enlarged text area and smaller margins?

    I've just been reading a long discussion initiated by a guy who wanted to recompose a PDF file to print in fewer pages. I'm not asking about that. I'm aware that Acrobat Pro 9 will not recompose the pages of a pdf for you; as someone said, it's not a word processing program. I want to copy a PDF to a new file with an enlarged text area and smaller margins, so I can read it more easily. My eyesight isn't so great.
    I'm trying to print a decision of the US Supreme Court, for my study. The problem is that these PDF files of such decisions are composed in 10-point type with generous margins, in folio-size pages smaller than 8 1/2 x 11". When you open PDF files of these decisions, you get extremely wide margins and relatively small type. Essentially, I'd like to re-rasterize the document so it prints on my 8 1/2 x 11" paper in a larger apparent type size, but in the same high resolution as the original. By the way, the decision I'm working on is almost 200 pages long, so I don't want to do this, obviously, in a page by page manner.  
    I guess I could do this in Photoshop, by blowing pages up and cropping them. Photoshop does a good job of eliminating the jaggies when you do this. But it would seem better to re-rasterize the pages from the PDF source file. So would any reader be kind enough to explain this process to me? (I'm fairly savvy in Photoshop, Illustrator, and computer printer concepts, but a complete newb in Acrobat.)

    If you just want this for printing, one thing you can easily do is crop all of the pages to remove the margins. For example, you can rop 2" off the left and right sides, and 1.5" off the top and bottom. Then print using a Page Scaling of "Fit to Printable Area".
    To crop in Acrobat 9, select: Document > Crop Pages
    be sure to select All for the Page Range.

  • Can I Scan to editable text on HP Officejet Pro 8620 using the Apple Printer Driver 3.0?

    Can I Scan to editable text on HP Officejet Pro 8620 using the Apple Printer Driver 3.0?
    I had a very difficult time getting my new HP Officejet Pro 8620 functioning as well as it does now.  I just tried scanning something as editable text for the first time and it ended up being scanned as a pdf.  At one point in my various tries there was a note on the printer screen that I did not have the HP OCR software installed.
    This may be because the resolution to my installation problems with the HP Officejet Pro 8620 seems to have been reverting to operating with the HP-Apple Printer Drivers 3.0 package instead of the HP-Officejet-Pro-8620_v12.32.0.dmg installation package.
    I do not, therefore, have the HP Scan application on my computer now which is where HP says its OCR software can be found.
    So what I'm afraid of is that I'm now running well with the HP-Apple driver but if I do go back and install the HP Officejet Pro v12.32.0 driver software with the HP installer, in order to access the OCR softwware in HP Scan application, I'll mess up everything else.
    Is there any chance that the HP-Apple Printer Drivers 3.0 package I have installed also includes OCR software?  If so where can I find instructions for activating it and using it with the HP 8620's scanner?
    Or can I only get OCR capability with the HP-Officejet-Pro-8620_v12.32.0.dmg package?
    Any experience with this?  Should I leave well enough alone?  Or can I somehow install the HP-Officejet-Pro-8620_v12.32.0.dmg package without messing up my current functionality?
    Thanks
    Steve

    The printer driver that is installed automatically from Apple doesn't scan. The scanner part can be accessed through Image Capture, but I don't think that does any OCR on the scan. You'd need a separate program. As you noted, many of the bundled software programs have OCR built-in (albeit limited). From my experience, that is only activated when you scan to "searchable" PDF or something similar. You would then have to extract the text from the PDF.
    I don't have an HP printer/scanner, so take this all with a grain of salt.
    If you can just install the Scanner utilities, that shouldn't affect the printer portion.
    Your other option would be to purchase separate OCR software. Unless you need to scan lots of documents into text, you should further investigate installing the HP scan utilities.

  • How do i add a an editable text area along with a basic shape?

    hiee
    Thank u guys for replying to my previous query.I got the solution.
    Now ,my problem is, whenever i am drawing a new shape on the panel i want to add an editable text area along with the shape so that the shape can be given a userdefined name(something like Rational Ross).
    I am using g.drawString() but with that i can only add a static string.
    How can i add a JTextField or JTextArea along with the shape??
    Thanking u guys in advance.
    anvesha.

    It is considered standard procedure to acknowledge people's replies in the corresponding thread.
    As for your current problem, you'll have to make sure that the component you're subclassing is at least a Container. A JPanel could be a good pick. Set the layoutManager to null. Add your JTextField to your JPanel and use myTextField.setBounds(x, y, width, height) to place it whereever you want.

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contacts. I want it to just autofill for the contacts that I have in my address book. Is this possible? Thank you. I have an Imac Intel version and an Iphone 5 phone.

    Mail > Window > Previous Recipients

  • My airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW.

    my airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW. If we don't have a solution for this question, can i set my AE to use the IP TV and how??? I'm using a 4th Airport extreme

    No, not unless it is simply a network connection.
    How is your IPTV being provided.. if it is using a separate vlan or separate vpi/vci in the adsl connection. Who is your ISP?
    Is the TP-Link ADSL?
    Is the IPTV using a separate voice channel on adsl?
    Or a different vlan.
    Sorry but it is something where a definite answer is not possible unless you provide all the details.
    The setups are unique to each ISP around the world..
    Here is one for our local ISP.
    http://www.avenard.org/iptv/Setup.html
    He has a section on getting this working with apple router over wireless.. look
    http://www.avenard.org/iptv/IPTV_and_Wireless.html
    Google around and see if other people have had success.. the whole setup is tricky.. and it is hard if nobody has used it who actually understands networking.

  • Make text areas and textfields streach as window resizes

    im using the border layout for most of my panels. how do i make text areas and textfields stretch as the window resizes?

    Components placed in BorderLayout.CENTER will resize as the window resizes.
    You will likely need to have nested JPanels, with different layouts, to create the ultimate layout of all your components in a frame, especially for non-trivial applications.
    If you need specific help with layouts, you'll have to post an SSCCE.

  • I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files the error message is  could not be opened. The movie's file format isn't recognized. "  Any help or are they corrupted

    I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files, the error message is  "could not be opened". The movie's file format isn't recognized. "  Any help or are they corrupted?

    Sounds to me like the file is probably corrupt. If you had hard drive corruption or damage, that could easily result in recovered files not being fully intact. If you were trying to recover accidentally deleted files, it's possible they might have been partially overwritten before recovering. There are never any guarantees with file recovery.
    Without more information on the circumstances that led you to try recovery, it's hard to give advice on what to try from here. You could always try another file recovery tool, like Data Rescue 3. Just be sure you're taking appropriate precautions when doing recovery. See Recovering deleted files.

  • I can get text messages and get this at the top of page 'Messages (-1)' can anyone help please?

    I can not get or see any text messages and get this at the top of page 'Messages (-1)' can anyone help please?

    For details of how to restore it, see https://support.mozilla.com/kb/menu+bar+is+missing

  • I am using the app pdf to word and every time I place a a pdf file into the app no text appears on the rtf file. Any suggestions?

    I am using the app pdf to word and every time I place a a pdf file into the app no text appears on the rtf file. Any suggestions?

    http://answers.microsoft.com/en-us/mac/forum/macword

  • A year ago I brought a 1 TB hard drive (My Passport), I have not used it for over 4 months and now when I use the USB cord to connect it to my mac, it does not register the hard drive.  Does anyone know why this is happening?

    A year ago I brought a 1 TB hard drive (My Passport), I have not used it for over 4 months and now when I use the USB cord to connect it to my mac, it does not register the hard drive.  Does anyone know why this is happening?

    The beeps could be caused by something as simple as a loose internal wire or connection.  If it is under warranty (not sure how long that is, as WD drives range from 1 to 5 years depending on the model's series - I think "my passport" drives are 3 years) you could contact WD and ask them about it.
    If it is out of warranty, you could also try opening the case and check the connections - the drive may be fine, and there have been posts on TomsHardware forums of people getting the beeps, opening up the case and the drive is fine, just some wire worked loose.

  • How to use the Variants in SAP Transportation and what is its use ?

    Hi experts,
    How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ?
    Can anybody answer this ?
    Regards,
    Shakti

    Hi,
    If you are asking about "slection vairants" in SPRO settings of "shipment cost document" then
    When it is activated,
    each user can have his own slecetion  and list criteria for
    1. List shippment costs:calculation
    2. List shippment costs: settlement
    This can be directly saved from VI01 screen by the user.
    from environment> lists
    This is user specific only.
    Hope this helps.
    Regards,
    Sharan

Maybe you are looking for

  • Word stuck with addins

    finishing up report with Dragon 12.5 and can't get Word back up with interminable Dragon update

  • Need help with creating text anchors with tagged text.

    Can anyone tell me how to determine the correct value for a "Hyperlink Dest Index" value? I have a script which creates a tagged text file that specifies about about 280 pages of tables (thank heavens for autoflow) , and would like to add live links

  • TV AND G5

    Is it possible to use my TV screen as a monitor for my G5? If so how would I go about connecting them?

  • Testing ActionScript classes with native methods?

    Hi, I have an ActionScript class that I'm writing and would like to test using FlexUnit. The only issue is that the ActionScript class has a member in it that is a class with native methods. So, I get the following error when trying to run a test of

  • My 'export to wav' function is missing in Quicktime.

    I have QuickTime 7 Pro, and all my export-to-audio options are missing. If I go to File > Export, the dropdown selector only shows video options. I've tried several different files in different formats, and the result is always the same. The audio op