edit: The point of this was to make gedit open files with the correct code coloring for specific file types, like cgi, template, and x. And it works.
I followed this very short "how-to"...
http://judsonsnotes.com/notes/index.php ... &Itemid=59
I had to edit /usr/share/mime/packages/freedesktop.org.xml and add some globby looking stuff. I ran a command I've never seen before, "sudo update-mime-database /usr/share/mime". And now my cgi and custom extensions open with the correct coloring in gedit, my gui text editor of choice. I made .cgi be a python file and .template and .x be html files.
Not sure what any of that had to do with gedit, but it works. Why wasn't this a setting within gedit, I'll never know. I guess this is a system-wide change I've made, that will effect my vim editor too.
For all coding issues - MODers and programmers, HTML and more.
1 post • Page 1 of 1
- DBB Artist
- Posts: 7128
- Joined: Mon Aug 01, 2005 8:47 am
- Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ