How Do You Inspect Your Code?

How Do You Inspect Your Code?
0

#1

Hello,

I want to make sure I am following proper format and inspect my code to make sure it’s clean.

Is there a software out there that can do this? I would like to dump all my html in a field and have it generate any errors with my code.


#2

You can look into HTML validators and beautifiers.

One such tool:

W3C Validator

Also, jsLint and jsHint are tools for inspecting Javascript for commons errors and issues. These often hook right into editing software (depending on what you are using).

I use notepad++ for my editing, and jsHint integrates as a plugin.

I honestly don’t use a tool at the moment for validating my HTML or CSS.


#3

Thanks for the help, the W3C Validator is quite useful however, sometimes it will tell me that I have more than one a tag, which is true, but those are valid. Unless I really do have a duplicate, then I need to look harder into my code.


#4

Not by chance an anchor inside of an anchor? (Failing to close an anchor tag before inserting another?)

It’s the only reason I can think of off the top of my head that a validator might complain. I can’t think of another place they would cause a problem other than outside of the body. But I’ve never tried that, so I don’t know if the validator would complain about that. :slight_smile:


#5

That’s a good tip, I’ll look into that and see if that’s the case :slight_smile:


#6

I like t use brackets as my code editor. Brackets has many tools or add-ons that you can use plus it’s open source


#7

another one that I like it’s cloud9 but that is an IDE it’s a bit more complex but it’s great for working with a team cause it’s on the cloud