Questions tagged [code]
38 questions
16
votes
8 answers
Which tool can tidy/indent HTML5?
I've already spent about 2 hours searching google and trying various tools but either they don't do indent tags per say or they aren't HTML5 compatible such as the famous HTML tidy which was last updated 3 years ago…
N.B. I don't want to apply this…
WaterBearer
- 391
- 2
- 9
15
votes
7 answers
How do you backup your websites?
I was just wondering how the community backs up their websites?
I take a nightly dump the database and shift it across onto another server which then gets backed up onto removable media. It is fairly automated and seems to work but I would be…
Toby
- 2,988
- 2
- 21
- 39
15
votes
2 answers
How to ignore certain coding standard errors in PHP CodeSniffer
We have a PHP 5 web application and we're currently evaluating PHP CodeSniffer in order to decide whether forcing code standards improves code quality without causing too much of a headache. If it seems good we will add a SVN pre-commit hook to…
Tom
- 1,523
- 2
- 14
- 18
5
votes
3 answers
HTML Character Entities/Special characters with crossbrowser/crossplatform support?
I used some good looking ones from http://dev.w3.org/html5/html-author/charref on my site but I just noticed that they don't show on mobile browsers of Android.
For example:
⪦ ⪦
⪢ ⪢
Which special characters…
CamSpy
- 1,629
- 2
- 17
- 24
5
votes
4 answers
Maintaining legacy code
I have an old codebase that still "works" but is difficult/nearly impossible to maintain. It may be expensive (time and money wise) to update it. Do I just go for it, or should I continue to hate my world (but continue working on something that…
Jason
- 2,158
- 21
- 26
5
votes
0 answers
Migrating Wordpress to Hugo (or generic markdown)
I have a blog which I want to migrate from Wordpress to Hugo.
The problem is that the blog has a lot of posts which contain code examples, including HTML code.
I'm using Codecolorer as Wordpress plugin, so my posts look something like this (my…
tim
- 331
- 1
- 9
4
votes
0 answers
What is missing in my SEO checklist for new websites?
So I have a question about what can be done for SEO-purposes purely with coding (meaning this question is not about content strategies, keyword research, linkbuilding and stuff like that, but only about building crawlable semantic mark-up with all…
MoritzLost
- 165
- 8
4
votes
1 answer
Will email address obfuscation code that could look like it might be malicious hurt search engine rankings?
I use an email obfuscation tool.
Send email
would become:
Send e
TomGrill Games
- 143
- 3
3
votes
1 answer
Questions about editing a site created in Adobe Muse by someone else
A client came to me with an existing site created in Adobe Muse by another developer. They had exported the site to HTML so I could post the files to the client's new hosting account. Now the client has a bunch of changes and I'm stuck with the…
dugost
- 31
- 1
- 2
3
votes
2 answers
Does Google care about code formatting?
TLDR;
Does Google care how code is formatted?
Background
I work in an agency. One developer is trying to convince the other to put line-breaks between rules in his css file:
.class {
width:100%;
height:auto;
}
as opposed to inline: .class {…
Richard Parnaby-King
- 177
- 6
3
votes
2 answers
Create MediaWiki template to format source code
I want to create a MediaWiki template like
{{{code}}}
and use it in normal article pages as
{{SourceCode|source=public static void main()…
qazwsx
- 311
- 1
- 5
3
votes
2 answers
Where to find my website's source code?
My company ordered a website and we were given all usernames and passwords but I can't find the PHP source files and this is my first website assignment. I have no prior exposure to web technologies although I've been programming for a decade and…
Aamir Berni
- 31
- 1
- 2
3
votes
1 answer
How can I automatically clean, beautify, and autoindent dynamic HTML code?
Using content management systems to build dynamic sites invariably results in ugly HTML. Indent levels are often wrong, white space litters the page, and a host of other tiny annoyances plague anyone attempting to read the source code for debugging…
Nick
- 20,506
- 4
- 46
- 81
3
votes
3 answers
Some browsers zoom in on website, removing whitespace on sides?
On some browsers, they show the website more expanded, removing the white space on the sides of the page. This has the effect of making everything seem more cluttered and bigger.
Is there something in my code that means they do this?
James Buldon
- 71
- 3
2
votes
2 answers
How much recyling CSS makes my website faster?
I'll give you two examples to clarify what I'm trying to say.
Example 1:
p {
font-family: Arial;
}
#id1 {
font-family: Arial;
}
.class1 {
font-family: Arial;
}
#id2 {
font-family: Arial;
}
.class2 {
font-family: Arial;
}
Example 2:
p, #id1,…
SnooDucks299792
- 123
- 3