How To Fix A Syntax Error In Dreamweaver
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Dreamweaver support forum All CommunitiesDreamweaver support forum 18 Replies Latest reply on Aug 30, 2013 11:55 AM by Cousin Richie "There is a syntax error on line [x]..." alessio_92 Jan 6, 2012 6:23 AM Hi,I'm working in Dreamweaver CS5 (as a total novice), and have just received an error message saying "There is a syntax error on line 72. Code hinting may not work until you fix this error." Line 72 in the coding simply says I'm doing everything graphically and haven't put anything into the coding myself, so I have no idea what this is all about, could someone please enlighten me as to what to do? Thanks Alessio I have the same question Show 0 Likes(0) 15072Views Tags: none (add) This content has been marked as final. Show 18 replies 1. Re: "There is a syntax error on line [x]..." BenPleysier Jan 6, 2012 6:37 AM (in response to alessio_92) Dear Alessio,The problem may not be on line 72, but within the script itself. If you want assistance, please let us be privy of the markup and scripts used. The best way to do this is to supply a link to a working online document.Gramps 1 person found this helpful Like Show 0 Likes(0) Actions 2. Re: "There is a syntax error on line [x]..." MysticKnight Jan 23, 2012 3:45 PM (in response to BenPleysier) I was using Dreamweaver CS5 without problem. Today I opened the same website in Dreamweaver 5.5 and it got the following syntax error notice...There is a syntax error on line 32. Code hinting may not work until you fix this error.I decided to create a new test.dwt file and I only have a single roll-over image on the page. Nothing else. When I created a page from the test.dwt file, it got the error message above.In other words, Dreamweaver doesn't like the script that it created to make the roll-over image. Here's the code that creates the error message...------------------- Begin Example ---------------------https://forums.adobe.com/thread/945511 script line? up vote 1 down vote favorite Why does Dreamweaver page using .dwt show syntax error for this script line? script window.jQuery || document.write(' It shows syntax error only on a page using the template .dwt file. Does not show error in the template - only when applied to a page. javascript jquery templates dreamweaver share|improve this question edited May 7 '15 at 18:53 http://stackoverflow.com/questions/30109407/why-does-dreamweaver-show-syntax-error-for-this-script-line Rory McCrossan 155k22131180 asked May 7 '15 at 18:52 Will Noel 247 It's probably because the script tags in the JS code are confusing the parser. –Rory McCrossan May 7 '15 at 18:54 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You are not escaping the first / character script window.jQuery || document.write(' Should be script window.jQuery || document.write(' Although you can use document.createElement('script') which is less confusing for the parser if(!window.jQuery) { var script = document.createElement("script"); script.src = "js/jquery.min.js"; document.body.appendChild(script); } share|improve this answer edited May 7 '15 at 18:59 answered May 7 '15 at 18:54 Tiny Giant 10.4k62046 Yes - RORY, your second answer option resolved the problem. THANK YOU. the if statement fixed it. –Will Noel May 9 '15 at 15:46 this answer is accepted –Will Noel May 11 '15 at 13:15 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://stackoverflow.com/questions/9764365/dreamweaver-cs5-code-hinting more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://superuser.com/questions/716179/how-do-i-disable-syntax-checking-for-a-specific-file-extension you, helping each other. Join them; it only takes a minute: Sign up Dreamweaver CS5 code hinting up vote 0 down vote favorite I've been programming in Xcode a lot and the code hinting/autocompletion is amazing. Now Im how to working with CS5 and it's a pain to need to hit Crtl+Space every single time for code completion. Every time i type a letter, instead of autocompletion, dreamweaver saids "There is a syntax error on line ... Code hitting may not work until you fix this". So is there anyway to have code hinting enable right when you type a letter or at least have error checking be less aggressive? Thank you so much! dreamweaver share|improve how to fix this question asked Mar 19 '12 at 2:45 Ben 5722815 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Unfortunately, you don't get a ton of control over Dreamweaver's code hinting and syntax checking. The code hinting can be enabled or disabled and also given a delay before appearing at Edit | Preferences | Code Hinting. The Syntax Error in the header can be disabled in Split View or Code View from the Coding Toolbar. Look for the icon that has the triangular yellow background with an exclamation point and toggle it. When you have invalid syntax you'll still get red coloring on the line numbers (or left margin if you disable the line numbers) but that's about it. share|improve this answer answered Apr 7 '12 at 4:39 JCL1178 1,0071932 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged dreamweaver or ask your own question. asked 4 years ago viewed 5884 times active 3 years ago Linked 2 How to fix DreamWeaver's
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How do I disable syntax checking for a specific file extension? up vote 0 down vote favorite I recently installed Dreamweaver CS6, and I'm having a problem when modifying a JSON file. No matter what I type, even the simplest, clearly valid JSON string, it keeps saying there is a syntax error in it: Apparently, Dreamweaver tries to validate the JSON file as JavaScript. Well, obviously a simple JSON string is not valid JavaScript, but it is valid JSON. In an attempt to fix it, I modified the Extensions.txt file in my Configuration to change JS,JSON:JavaScript Documents to JS:JavaScript Documents After restarting, Dreamweaver still tries to validate it as JavaScript. I even tried removing the JSON file type from the "All Documents" line (the very first line of Extensions.txt), which causes it to not recognize the file type or assign an icon, but it still attempts to validate it as JavaScript. So how can I configure Dreamweaver CS6 to stop trying to syntax check files that end with a .json extension at all? Can I set it to just ignore files with that extension? I'm assuming this would also disable syntax highlighting for JSON, which I'd be perfectly fine with. Basically, can I make Dreamweaver treat a JSON file the same way it would treat a TXT file? syntax-highlighting dreamweaver adobe-cs6 share|improve this question asked Feb 13 '14 at 2:39 animuson♦ 1731115 add a comment| 1 Answer 1 active oldest votes up vote -1 down vote Apparently that's not the only file you need to edit. In fact, you don't really even need to edit the Extensions.txt because that's just an aesthetics file used for disp