"bytes"
        "encoding/json"
        "fmt"
+       "strings"
 
        "github.com/BurntSushi/toml"
        "launchpad.net/goyaml"
        }
 }
 
+func FormatToLeadRune(kind string) rune {
+       switch strings.ToLower(kind) {
+       case "yaml":
+               return rune([]byte(YAML_LEAD)[0])
+       case "toml":
+               return rune([]byte(TOML_LEAD)[0])
+       case "json":
+               return rune([]byte(JSON_LEAD)[0])
+       default:
+               return rune([]byte(TOML_LEAD)[0])
+       }
+
+}
+
 func DetectFrontMatter(mark rune) (f *FrontmatterType) {
        switch mark {
        case '-':