Skip to main content

Convert a Word document to Markdown and check the headings and table

· 4 min read
Charly Abraham
Co-Founder, Phoenix Code

Pandoc can turn a Word document into a Markdown file you can use in a GitHub README. One command creates the file. Opening it in a preview lets you check that your headings and table cells survived.

Try it with a walk plan. One meeting point is Gate A | East car park. Markdown uses that same vertical bar to separate table cells, so that address gives you an easy way to check your result.

How to Add a Favicon in HTML

· 4 min read
Charly Abraham
Co-Founder, Phoenix Code

A favicon is the small picture beside a page title in a browser tab. To add one, put the icon file on your website and add a <link rel="icon"> inside each page’s <head>. The href tells the browser where to find the file.

You’ll need an HTML page you can edit and a logo, or you can use the sample image below. We’ll give a site called Trail Notes the same icon on its home page and its About page, one folder deeper.

How to Compare Two JSON Files and Read the Differences

· 3 min read
Charly Abraham
Co-Founder, Phoenix Code

Did a setting change, or did someone just rearrange the file? Open the old version in Original JSON and the new version in Changed JSON, then click Compare JSON. Phoenix Code compares the values and shows the location of each difference. Spaces, indentation, and the order of keys in an object can change without showing up as edits.

You can use your own two files or paste the examples below. The free JSON Compare & Diff tool runs in your browser.

Build a responsive CSS Grid sidebar that stacks on phones

· 3 min read
Charly Abraham
Co-Founder, Phoenix Code

A walking guide needs room for a list of walks beside the route description. On a phone, people should be able to read the description without scrolling sideways. You can build both layouts in Phoenix’s free CSS Grid Generator and download a single HTML file that switches between them.

You’ll make three blocks called Trail notes, Walks, and Route details. All you need is a browser.

How to Get a Hex Color From an Image and Use It in CSS

· 3 min read
Charly Abraham
Co-Founder, Phoenix Code

Suppose you want a label on your website to match the orange on a trail sign. Which orange should you copy, and will white lettering be readable on it? You can answer both questions using the picture itself. In this example the orange is #FF8C42. Dark text on it measures 7.75:1 for contrast.

Find and fix a trailing comma in JSON

· 2 min read
Charly Abraham
Co-Founder, Phoenix Code

In JSON, a comma tells the reader to expect another value or property. A comma immediately before the closing ] or } is a trailing comma and makes the file invalid. A comma inside quoted text is an ordinary character. Removing every comma can break the file and change your data.

Here’s how to find the extra comma in a list of stops, keep the place name Lake, north intact, and save the corrected file.