Following my question from long ago, I am still trying to tweak my fortune handling capabilities. The display in terminal is awesome, just one thing remains - syntax highlighting in Gedit as I add, edit or delete individual fortunes.
My custom fortune files are in this format:
Friend: "Whats a good movie?" Me: "Snakes on a plane" Friend: "Whats it about?" Me: "Horses... horses on a boat..." @AYYSIAN % Me on my wedding: you still like me, right? @ComedyPosts % Mum: Son I'd love to meet your girlfriend... Me: Me too... @ComedyTruth % Doctor: "Ok, so what's wrong, how are you feeling?" Me: *Looks at mum waiting for her to explain* @ChildhoodFact % Friend: 75% of people are good at maths... Me: Mmmmh, I guess then am in the remaining 18%... @TheFunnyTeens % I loved the Titanic. My favorite character was the iceberg @__GrumpyCat
@name and the
% character. Then repeat.
When I open it in Gedit, everything is black.
I'm looking for a way to create a syntax highlighting file that will convert the
% to something like blue and the
@name to something like magenta. The tweet can remain black.
- The fortune files are mime-type
text/plainand only the given format really distinguishes them from another plain text file.
- Fortune files have no extension.