Use prism for code syntax highlighting
This commit is contained in:
parent
356c9dca43
commit
adf3c67355
54 changed files with 471 additions and 324 deletions
|
@ -23,13 +23,13 @@ This week I released the first version of the Nomensa Accessible Media Player mo
|
|||
|
||||
The library can be downloaded directly from GitHub, and should be placed within you *sites/all/libraries/nomensa_amp* directory.
|
||||
|
||||
~~~~
|
||||
```language-bash
|
||||
drush dl libraries nomensa_amp
|
||||
git clone https://github.com/nomensa/Accessible-Media-Player sites/all/libraries/nomensa_amp
|
||||
cd sites/all/libraries/nomensa_amp
|
||||
rm -rf Accessible-media-player_2.0_documentation.pdf example/ README.md
|
||||
drush en -y nomensa_amp
|
||||
~~~~
|
||||
```
|
||||
|
||||
### Configure the Module
|
||||
|
||||
|
@ -41,11 +41,15 @@ Within your content add links to your videos. For example:
|
|||
|
||||
### YouTube
|
||||
|
||||
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a>
|
||||
```language-html
|
||||
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a>
|
||||
```
|
||||
|
||||
### Vimeo
|
||||
|
||||
<a href="http://vimeo.com/33729937">Screen readers are strange, when you're a stranger by Leonie Watson</a>
|
||||
```language-html
|
||||
<a href="http://vimeo.com/33729937">Screen readers are strange, when you're a stranger by Leonie Watson</a>
|
||||
```
|
||||
|
||||
## Adding captions
|
||||
|
||||
|
@ -56,8 +60,10 @@ The best way that I can suggest to do this is to use a File field to upload your
|
|||
3. Right-click the uploaded file, copy the link location, and use this for the path to your captions file.
|
||||
|
||||
For example:
|
||||
|
||||
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a> <a class="captions" href="http://oliverdavies.co.uk/sites/default/files/checking-colour-contrast-captions.xml">Captions for Checking Colour Contrast</a>
|
||||
|
||||
```language-html
|
||||
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a> <a class="captions" href="http://oliverdavies.co.uk/sites/default/files/checking-colour-contrast-captions.xml">Captions for Checking Colour Contrast</a>
|
||||
```
|
||||
|
||||
## Screencast
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue