logo

Free Trial
  • About
    • About Us
    • Our Customers
    • Industry Guides
    • Watch Our Story
    • Customer Success Stories
    • Privacy Policy
    • GDPR Policy
    Industry Guides Industry Guides Customer Success Stories Customer Success Stories
  • Solutions
    • Redaction
    • Finding Documents
    • Recipient Checking
    • Manage Metadata
    • Document Comparison
    • Document Bundling
    • OCR for Dropbox
    • GDPR Compliance
    Metadata Removal Manage Metadata OCR Software Finding Documents
  • Industries
    • Accounting
    • Legal
    • Financial
    • Government
    • Technology
    • Oil, Resources & Energy
    • Life Science and Pharmaceuticals
    • Appraisal Management Companies
    Accounting Accounting Legal Legal
  • Products
      • compareDocs
      • compareDocs cloud
      • compareDocs cloud API
      • compareDocs SDK
      See the difference. Instantly.
      • pdfDocs
      • pdfDocs binder
      Create complex PDFs. Easily.
      • contentCrawler
      • contentCrawler cloud
      See what you're missing.
      • cleanDocs
      • cleanDocs server
      The smart way to send.
  • Integrations
    • iManage
    • NetDocuments
    • OpenText
    • SharePoint
    • Worldox
    • Other
    DocsCorp Integrations with Document Management Systems Other integrations iManage integration iManage integration
  • News
    • Press Releases
    • Events and Webinars
    • Our Blog
    • Infographics
    • Customer Success Stories
    • Industry Guides
    Webinar | Protect your business from information leaks now and into the future. Webinar | Protect your business from information leaks now and into the future. Norway’s highest-ranking Legal 500 firm Wiersholm switches out Adobe Acrobat for pdfDocs Norway’s highest-ranking Legal 500 firm Wiersholm switches out Adobe Acrobat for pdfDocs
  • Buy
    • cleanDocs
    • compareDocs
    • pdfDocs
  • Support
    • About Our Support
    • My Portal
    • Credit Card Payments
    • My Training
  • Contact
    • Contact Us
    • Find a Partner
    • Log a Support Request
  • Home
  • Our Blog Posts
  • compareDocs lets you find changes in snippets of code

How web editors can use compareDocs to find changes or errors in snippets of code

01 Mar 2018

By Bilal Karaali, compareDocs Product Manager

Nothing tests patience and eyesight like trying to find an error in a line of code. HTML can break from something as small as forgetting to close a bracket to leaving out a full stop in a hyperlink tag. With platforms like WordPress, Joomla, and Drupal, web content management is available to more than just developers. So, when things go wrong and a WordPress user doesn't have Visual Studio or other powerful tools to get into the nitty-gritty of the code they don't have many options.

Fortunately, compareDocs can help.

A step-by-step guide to finding errors in code using compareDocs

 

STEP 1: Locate the line of code with errors

For common errors like a broken hyperlink, incorrect text formatting, or inconsistent paragraph breaks, find the line or section of code with errors within the source code or HTML view of the web page, highlight it and select copy. Open compareDocs and paste it into the ‘Modified’ field of the User Interface.

'Original’ HTML without error

'Modified’ HTML with an error

STEP 2: Find a similar line of code that works

Copy a similar snippet from another page where the code displays correctly. This will become your ‘Original’ text in compareDocs. Paste it directly into the field within the UI. 

STEP 3: Compare the two versions to find the errors

Once the code has been pasted in, select Word output with redline or Track Changes as the output. When you click on ‘Compare,’ a Word document will pop up and show the differences between the two snippets of code. The changes in your ‘Modified’ aka broken code can show you what’s missing or wrong and allow you to fix the issue.

The comparison report showing the error: the ‘/script’ tag is broken in the ‘Modified’ code since < and > have been removed

Not a compareDocs user yet? Download a free trial and see how the market-leading document comparison tool can make your life easier.

TRY COMPAREDOCS 

  • The PDF software that accountants still count on 15 years later
  • How to remove metadata from PDFs using cleanDocs
  • The six types of metadata putting you at risk of a data breach
  • The Corp of the Matter | LPM November 2019
  • Why compareDocs is document comparison with a difference
  • What you need to know about file compression
  • Feature Spotlight: Add custom metadata to electronic binder projects with pdfDocs binder
  • What you need to know about the CCPA, California’s new consumer privacy act
  • Answers to common cleanDocs questions
  • What’s your number? A brief look at the harsh realities of non-searchable content for lawyers
  • How email recipient checking in cleanDocs protects you from emailing the wrong person
  • Answers to common compareDocs questions
  • iManage and DocsCorp have partnered to help reduce the risk of email data breaches
  • How to work with Auto Page Numbering in pdfDocs
  • How to compare selected text with compareDocs
  • The costs of a data breach have increased dramatically
  • How to use the email recipient checking functionality in cleanDocs
  • Managing the inevitable: How to lessen the impact of a data breach
  • Two ways every Australian business can minimize the number of data breaches reported under NDB
  • How to compare PDFs in compareDocs
  • How to clean metadata from Microsoft Word documents with cleanDocs
  • How to compare two Word documents in compareDocs
  • How to convert to Word from PDF in pdfDocs
  • Ask an expert about compression: How to reduce PDF file size using automation
  • Feature Spotlight: Bates Numbering in pdfDocs binder
  • Feature Spotlight: Pattern Search and Redaction
  • Why the devices we use for PDF editing are changing
Home
  • About DocsCorp
  • Disclaimer
  • Privacy Policy
  • GDPR Policy
  • Data Security
  • Service Level Agreement
  • Human Rights Policy
  • Anti-Slavery and Human Trafficking Policy
Products
  • pdfDocs
  • pdfDocs binder
  • compareDocs
  • compareDocs cloud
  • compareDocs SDK
  • cleanDocs
  • cleanDocs server
  • contentCrawler
  • contentCrawler cloud
News
  • Press Releases
  • Events/Webinars
  • Industry Guides
  • Case Studies
  • Blog Posts
  • Infographics
  • Watch Our Story
myDocsCorp
  • Support login
  • Pay2Go
  • myDocsCorp
  • Training directory
  • Customer Support
  • Find a partner
  • Contact us
  • blog
  • linkedin
  • twitter
  • facebook
logo

© Copyright DocsCorp 2019 - All rights reserved.