As mentioned before I started with programming VHDL and since I want to blog about that (among other topics), some nice syntax highlighting would help if when code snippets were included.

So for syntax highlighting this blog uses Prism, however it lacked support for some languages and formats I work with:

  • Puppet — .pp
  • Yaml (Hiera/Ansible/etc) — .yml
  • VHDL — .vdh
  • User constraint files — .ucf

Basic definitions for these languages have been added to jasperla/prism-langs, so feel free to fork and send pull requests with any improvements.


###Demo

Puppet:

package { 'emacs':
  ensure => latest
}

Yaml:

---
workstation::packages:
  - emacs
  - ncmpc

VHDL:

Library IEEE;
Use IEEE.STD_LOGIC_1164.ALL;

Entity top_level is
	Port (
    	led : out STD_LOGIC;
        sw  : in  STD_LOGIC
    );
End top_level;

Architecture Behavioral of top_level is
Begin
	led <= sw;
End Behavioural;

UCF:

# Basys2 constraints
NET "led" LOC = "M5" ; # Bank = 2, Signal name = LD0
NET "sw" LOC = "P11" ; # Bank = 2, Signal name = SW0