Eddymens (List page)

Last updated 2022-11-13 16:29:25

Adding A Copy Button To HighlightJS Code Snippets

The code below produces the code snippet shown above using HighlightJS and some custom JS to append a click to copy button to the snippet. ...

Last updated 2022-11-04 01:47:30

Remove .html From The End Of URLs | Netlify

Depending on how you generate your HTML assets to be hosted on Netlify , your URLs might end with for example: . You might want to change this to a path name without the extension i.e: ...

Last updated 2022-11-02 04:31:53

Capitalizing The First Letter In Each Word | PHP

PHP's function can be used to create readable blog post titles by capitalizing the first characters of each word. Additionally, you can capitalize the first character of names in your app. Below is an example of how to use the function. ...

Last updated 2022-10-29 12:07:05

Highlight.js: Add Line Numbers

HighlightJS does not provide line number feature out of the box. You will need a third-party library for that. Fortunately, there are a number of them to choose from. The one used in the ...

Last updated 2022-10-22 16:58:37

Get Human Readable Date In Javascript (Moment.js Format Time Ago)

You can present a human-friendly date to your readers using the moments.js library. This is an open-source Javascript library for working with dates. The code sample below shows how to comp...

Last updated 2022-10-22 08:58:42

Snippet Injection Not Working On Netlify

On Netlifly , you can inject scripts like CSS and JS into your production app. This means for example, instead of having your Google Analytics script in the development/local version of your webs...