Tag Info

Hot answers tagged

11

You should have FTP login details somewhere in that list of usernames and passwords (if not call the supplier and ask for it) or if you have full cPanel access, you can setup an account for yourself. FTP information should have:- FTP Address in the form of ftp.yourdomain.com, yourdomain.com, or an IP address) Username Password Once you have the login ...


8

I found a solution for removing the "Line indented incorrectly" error but first I should say that dragonmantank has a excellent point - you shouldn't mix PHP and HTML. It is a recipe for headaches. However, unfortunatly I think mixing PHP and HTML is very common especially in legacy software. The quickest and dirtyest fix assuming we are using the phpcs ...


6

Check out HTML Tidy. There are a lot of different bindings for different languages, so you should be able to find one that works for you. Edit: If you're looking for something actively maintained, check out HTMLawed.


6

You're going to run into a lot of issues running PHPCS with your PHP code mixed in with HTML. PHPCS is only really useful when you parse pure PHP scripts. The built-in coding standards are built around pure PHP, not mixed PHP/HTML. One option would be to build your own custom standard and using that instead. The custom standard would take into account the ...


5

You can use conditional comments for IE users and then use JavaScript to redirect them to a page that tells them whatever it is you want to say. Try something like this in the <head> of your web page: <!--[if IE]> <script type="text/javascript"> window.location = 'ie-only.html'; </script> <![endif]-->


5

Aptana Studio 2 does what you want in the menu Edit > Format. I've used it and it formats html, css and javascript. The WYSIWYG editor BlueGriffon also can also format html when you open a file. Both solutions are free and open-source, but Aptana might be better. I'm not sure if BG keeps all the code unchanged, probably not. Notes: Aptana 2 needs to be ...


4

If you see a future in your site please rewrite it as soon as posible if it's not maintainable. I maintain several +5 year old big sites and in the time I've spend cursing on the stupid problems that came from it I could have rewritten them all. Do yourself a pleasure and rewrite it, it's more fun to build something new as well ;)


3

I was looking for an online tool and that's probably why I failed to find anything. I was pointed to the Coda plugin PHP & Toolkit that does it. Also most HTML editors like Taco do it natively (but not Coda).


3

This is the standard line ending issue. On Unix, line endings end with LF ("\n"), while Dos and Windows machines used a CRLF combination ("\r\n"). If your editor is changing the line endings as it writes files, the other system won't automatically adjust that. On the opposite end, older versions of Windows Notepad doesn't recognize line endings from ...


2

If a page has been deleted then it is correct to return a 410 (or 404). If, however, it has been temporarily removed and the intention is to restore it at some point then it could be acceptable to return a 503 (Service Temporarily Unavailable) and preferably with a Retry-After HTTP response header indicating a date when the resource will be next available. ...


1

You can accompish this by editing the CSS styling of the block quote so there's no need to remove the quote block as this would be bad for SEO purposes. Typical Example of a Scroll-bar within Block Quote: blockquote { width:600px; max-height:150px; overflow-y:scroll; } I made a online demo so you can take a look of it in action, here is ...


1

You might mean JavaScript library (or framework), there are several. As far as I know, these are the more popular ones: Yahoo's YUI Sencha's ExtJS Dojo Toolkit And probably dozens other ones, google for "JavaScript framework". Or check this Wikipedia article or this stackoverflow question.


1

Many applications and services have produced plugins so that they integrate with WordPress, which they're including in TodayLaunch anyway. You could look into using WP as the core rather than their custom interface and bolt things onto it. The video doesn't say how much integration they do(it's not exactly in-depth), so some more complex tasks might require ...


1

Eclipse seems to do a decent job of indenting/formatting HTML5. You just use the usual format command (Ctrl-Shift-F) on an HTML file loaded in the HMTL editor and it will reformat it. To adjust it, go to preferences --> web --> html files --> editor. You can also control validation here. (I'm using Eclipse v4.2.2.) Note that the HTML editor requires ...


1

I humbly suggest Espresso 2. From their website: The one and only CSSEdit 3 — CSSEdit's award-winning visual tools, now inside Espresso. With awesome CSS3 support for multi-browser gradients, shadows and more. Web Preview with X-ray — See how your CSS affects web layouts, visualize margins and padding, and quickly find the relevant style ...


1

No. They aren't all from the same code base. Interestingly, at least two of them are ColdFusion based: the Windermere one and the homes.com one. The URL schema is very different, though. I think the homes.com one may be using a ColdFusion framework (Fusebox?), but maybe the Windermere one is not. In contrast the movoto.com site uses ASP.NET (.aspx), as is ...



Only top voted, non community-wiki answers of a minimum length are eligible