Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eccenux/markdowncode
Drupal 7 filter that allows using Github style for adding code blocks.
https://github.com/eccenux/markdowncode
Last synced: about 2 months ago
JSON representation
Drupal 7 filter that allows using Github style for adding code blocks.
- Host: GitHub
- URL: https://github.com/eccenux/markdowncode
- Owner: Eccenux
- License: mit
- Created: 2014-08-02T18:50:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-11T10:58:52.000Z (over 10 years ago)
- Last Synced: 2023-04-08T15:27:39.665Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MarkdownCode
============This is a simple Drupal 7 filter that allows using fenced code blocks with language name. Just as you can in Github-style Markdown.
As a bouns you can use 4-space code blocks. This is done after fenced code blocks so you can provide examples of fenced code blocks in 4-space code blocks ;-). In case its not obvious - 4-space code blocks consists of lines that start with 4 spaces.
Example
----------```css
.some-class {
background: yellow;
}
```Installation
----------------
1. Copy `markdowncode` folder to your `sites/all/modules`.
2. Enable this module as always (in a module configuration of your site).
3. Edit or add new content format.
4. Add this filter.
5. Add GeSHi filter below (if you haven't already).
6. Save the format and enjoy :-).If you are using Markdown extension then rember to add it below. The correct order of filters is:
1. Github-style Markdown code blocks filter (this filter).
2. GeSHi filter ([project page](https://drupal.org/project/geshifilter)).
3. Markdown filter ([project page](https://drupal.org/project/markdown)).