Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 834 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 834 Bytes

Easy Code Snippets Library

Developed and maintained by Izaac Johansson

Easy Code Snippets Library (here on called ECSL) is developed to create a gist-like library on a WordPress site. It contains a custom post type and it's own archive and single templates. It do also include two distinct shortcodes, explained below.

Shortcodes

Show a single snippet anywhere on the site, with prettify highlightning:
[ecsl-snippet id={id}]
Parameter(s):

int id : The specific ID of the code snippet to show.

bool only_code : Default: true. If set to true it will only show highlighted code, no extras like title, date, tags, language.

Show a list of snippets anywhere on the site, with prettify highlightning:
[ecsl-snippets]
Parameter(s):

null none : No parameters at this time