You need to sign in to do that
Don't have an account?
Conejo
Eclipse 3.5: Flaky Syntax Highlighting
I'm noticing issues with the new plugin related to syntax highlighting when editing VisualForce .page files. It intermittently stops highlight part of the text in the document. I haven't found a pattern when it occurs.
It is also rendering squiggly yellow lines under my <apex:page> tag, and my first <script> tag. Any ideas why? These are the first 2 items in my page.
<apex:page standardController="SR__c" extensions="HSRControllerExtension" showHeader="true" sidebar="true" tabStyle="SRt__c" title="Entry Page" > <script type="text/javascript" src="{!URLFOR($Resource.jQuery142, 'js/jquery-1.4.2.min.js')}" />
Thanks,
Rich C.
It's happened a couple times today. Both times after I saved the page after adding an <apex:inputField /> with autoclosing tags.
Thanks,
Rich C.
The Force.com IDE for Spring '10 does not provide code assist or tag validation for Visualforce pages. Its support for VF code assist is limited to HTML. This feature is absolutely on our roadmap.
To turn off the squiggles (in Eclipse 3.5; other versions may be slightly different):
1. Open Eclipse preferences (not project preferences)
2. In the left pane, navigate to Web > HTML Files > Validation
3. In the right pane, under Elements, set "Unknown tag name" to Ignore (default is Warning)
Jon
salesforce.com Product Manager
i am seeing this also, and i am on a mac 10.5
I'm seeing it happen on XP & OS X. I run eclipse on both os'es depending on which customer I'm working for.
fwiw I've found a couple workarounds for lost syntax highlighting:
1. Close page & reopen from Solution Explorer. (works but a PITA!)
2. Right Click on page choose Source => Format. (less of a PITA, but it reformats the document)
a. Ctrl-Shift-F keyboard shortcut (easiest!)
#2 is the easiest, but still isn't a 'Win' as reformats the markup.
If anyone at SF is looking into this, I would be interested in hearing from them.
Thanks,
Rich C.
We're aware of this issue in Eclipse 3.5 and we're targeting to fix it in the next Force.com IDE major release, in June, once we determine the root cause.
Jon
salesforce.com Product Manager
On poster said this would be fixed in June, it is close to the end of July. Any update on this?
I'm still experiencing this issue as well
over a year later, and this is still happening in the latest release version...
I'd love to have a solution to this problem!
Really? I'm using Force.com IDE 25 and I still constantly have to do ctrl+shift+f to get the synatx highlighting to come back. Am I missing something?
I downloaded the Force.com IDE directly, is it possible to upgrade from 3.5.2 to 3.6? If not which version of 3.6 should I download from sun's site? This one? http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2
I found that the syntax highlighting issue doesn't happen if you download Eclipse 4.2.2 as-is and then install Force.com as a plugin.
Note: Future updates to Eclipse or Force.com may invalidate this approach
I've been using this setup for the past few months and everything seems to be fine. Best of all, the syntax stays highlighted after saving!