lib/sublimetheme.rb in sublimetheme-1.0.0 vs lib/sublimetheme.rb in sublimetheme-1.0.1

- old
+ new

@@ -6644,32 +6644,42 @@ @file.close() puts ("Main xml heading written") puts ("TODO: Call .head() on class instance with any params and values") puts ("\ne.g. instance.head(fg='#F0F', bg='#0FF')") - puts ("options are:\n\tbg --> background") + puts ("options are:\n\tag --> activeGuide") + puts ("\tbg --> background") puts ("\tct --> caret") puts ("\tfg --> foreground") puts ("\tfh --> findHighlight") puts ("\tfhf --> findHighlightForeground") + puts ("\tgf --> gutterForeground") + puts ("\tgu --> guide") + puts ("\tgut --> gutter") + puts ("\tins --> inactiveSelection") puts ("\tinv --> invisibles") puts ("\tlh --> lineHighlight") puts ("\tsb --> selectionBorder") puts ("\tse --> selection") - puts ("\tsg --> stackGuide") + puts ("\tsg --> stackGuide\n") puts end def head(**options) @file = open(@filepath,'a') (options.sort.map).each{|x, y| + _write(@file, "activeGuide", y.upcase) if x.to_s == "ag" _write(@file, "background", y.upcase) if x.to_s == "bg" _write(@file, "caret", y.upcase) if x.to_s == "ct" _write(@file, "foreground", y.upcase) if x.to_s == "fg" _write(@file, "findHighlight", y.upcase) if x.to_s == "fh" _write(@file, "findHighlightForeground", y.upcase) if x.to_s == "fhf" + _write(@file, "gutterForeground", y.upcase) if x.to_s == "gf" + _write(@file, "guide", y.upcase) if x.to_s == "gu" + _write(@file, "gutter", y.upcase) if x.to_s == "gut" + _write(@file, "inactiveSelection", y.upcase) if x.to_s == "ins" _write(@file, "invisibles", y.upcase) if x.to_s == "inv" _write(@file, "lineHighlight", y.upcase) if x.to_s == "lh" _write(@file, "selectionBorder", y.upcase) if x.to_s == "sb" _write(@file, "selection", y.upcase) if x.to_s == "se" _write(@file, "stackGuide", y.upcase) if x.to_s == "sg" @@ -6777,10 +6787,10 @@ contrib = "\n" end licsn = "## License\n\nMIT (c) 2015 %s | %s\n\nThis is free software. It is licensed under the MIT License. Feel free to use this in your own work. However, if you modify and/or redistribute it, please attribute me in some way, and it would be great if you distribute your work under this or a similar license, but it's not required.\n\n"% [@author, email] - ack = "## Acknowledgements\n\nCreated using sublimetheme package by Taiwo Kareem. (https://rubygems.org/gems/sublimetheme). \nAll glory belongs to God.\n\n" + ack = "## Acknowledgements\n\nCreated using Ruby's [sublimetheme](https://rubygems.org/gems/sublimetheme) package by [Taiwo Kareem](https://github.com/tushortz). Alternatively, Use Python's [SublimeScheme](https://pypi.python.org/pypi/Sublimescheme). \n\nAll glory belongs to God.\n\n" lines = [title, img, about, inst, contrb, licsn, ack] filename = 'README.md'