Home > gedit > Is there a way to get Smarty syntax highlight in gedit?

Is there a way to get Smarty syntax highlight in gedit?

March 10Hits:1
Advertisement

I'm using smarty to develop a website and I need syntax highlighting. Currently gedit only highlights the html. Since my tpl files contains only html and smarty template functions. I've Google'd for this functionality and found this solution posted on github, but I didn't get it to work.

Does anyone have a solution for this?

I just want a basic editor I don't care for fancy stuff that eclipse and other programs have. I just want a text editor with syntax highlighting.

Answers

I got the github link to work. The steps I took was the following:

  1. Copy the files to a folder.
  2. Navigate to the folder with the cd command in a terminal.
  3. Make smarty.sh executable

    chmod +x ./smarty.sh

  4. And finally install it!

    ./smarty.sh

Related Articles

  • Is there a way to get Smarty syntax highlight in gedit?March 10

    I'm using smarty to develop a website and I need syntax highlighting. Currently gedit only highlights the html. Since my tpl files contains only html and smarty template functions. I've Google'd for this functionality and found this solution posted o

  • How can I write a new syntax highlighter for gedit?November 19

    Some times I wish the particular language I happen to be writing in had syntax highlighting. How can I add that? --------------Solutions------------- GtkSourceView is a portable C library which supports configurable syntax highlighting in gedit. Crea

  • Create a custom syntax highlight in geditMay 27

    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 fortun

  • Can I set a default syntax highlighting in Gedit?May 23

    Until you save a document in gedit, syntax highlighting is turned off. There are obviously good reasons for this -- people might get confused if certain words were randomly showing up in different colors. But for my purposes, I use gedit almost exclu

  • How to add a new language definition for syntax highlighting in Gedit?May 15

    I've attempted to create a new .lang file for getting Gedit to recognize the Julia programming language. I have read the tutorial, the reference document and the wiki page Gedit/NewLanguage, and I believe the file to be correct. However, upon restart

  • How to get QML syntax highlighting in gedit?

    How to get QML syntax highlighting in gedit?July 30

    QML files opened with gedit don't have syntax highlighting. Is there a package providing a gtksourceview lang.spec file for QML? If not, has anyone written a lang.spec than can be installed locally? --------------Solutions------------- I know this do

  • Text editor with tabs and syntax highlighting? Gedit alternative?

    Text editor with tabs and syntax highlighting? Gedit alternative? February 6

    As the question states, gedit has a few annoying bugs (cursor disappears, etc). I just need tabs, syntax highlighting, and line numbers. I will use it mostly for programming. I am using Lubuntu. edit: Thanks for the many suggestions, I am trying subl

  • Change language colors/syntax highlighting in geditMarch 24

    When a javascript file is open in gedit, I want comments to be green instead of the default blue. How do I change the colors? --------------Solutions------------- You have to edit the corresponding color-scheme file and change the color code for comm

  • Where to put *.lang syntax highlighting files for gedit in WindowsJune 1

    I'm trying to add coffeescript syntax highlighting to gedit in Windows, but I can't work out where to put the *.lang file. I'm following the instructions here, but the path ~/.local/share/gtksourceview-2.0/language-specs doesn't seem to apply to Wind

  • Custom gedit Syntax Highlighting for Dummies?November 3

    I want to make (have, actually) a custom syntax highlighting for gedit. There would be just a few different items: A line that begins with 2 tabs. ----- One color. A line that begins with 3 tabs. ----- Another color. A line that begins with 4 tabs. -

  • How do I enable syntax highlighting in nano?

    How do I enable syntax highlighting in nano?December 23

    Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights. --------------Solutions------------- The nano editor provides syntax highlighting for a few languages and scripts by itself. C

  • nano syntax highlighting not working for all languages

    nano syntax highlighting not working for all languages December 23

    Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights. --------------Solutions------------- The nano editor provides syntax highlighting for a few languages and scripts by itself. C

  • Console style syntax highlighting

    Console style syntax highlightingAugust 13

    I am using the syntax highlighter, which is convenient. I was wondering if there is a module for a console style rendering. For example, in a wordpress site, I saw I highlighted it just to show that it is not an image of an actual terminal. ---------

  • Syntax highlighting for .tpl file in Aptana Studio 3October 11

    I am trying to edit a smarty php template file in Aptana studio 3, and unfortunately it is very very plain, black text on a white background. I would like to activate syntax highlighting for .tpl files. I have already tried going to Preferences > Gen

  • Syntax highlight in bugzillaJune 30

    I have Bugzilla installed on Ubuntu Server. Is that possible to add syntax highlight to Bugzilla comments (for C++ code)? Now code pasted in comments looks not well formatted and it makes harder to understand it. --------------Solutions-------------

  • To have syntax highlighting for codes in LaTexJuly 27

    I would like to know how you can syntax highlighting in a LaTex document for codes. An example of such document is this guide about a Pyhton library and Page 9. Perhaps, the document is not built by LaTex. Perhaps, by Markdown and with some addons. -

  • haml and sass syntax highlight in smultronAugust 28

    Is there a way I could get syntax highlight to work for haml and sass in Smultron? I know there's a bundle to do this in Textmate, but I would like to have it in Smultron. --------------Solutions------------- Yes definitely. Go to your Smultron file

  • Assigning custom extensions to a language's syntax highlighting in Notepad++September 14

    In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting where I can define this? --------------Solutions--

  • How to set codes syntax highlight on iWork 09 Pages?

    How to set codes syntax highlight on iWork 09 Pages?October 7

    Just like when we can use SyntaxHighlighter2 plugin to show sourcecodes with syntax highlight in popular programming languages while blogging on Wordpress MU. I'm wondering if we can set syntax highlight for a certain block of texts on iWork 09 Pages

  • Browser which supports syntax highlightingOctober 11

    Does anybody know of some browser or browser addon which supports syntax highlighting when opening a web file like http://gears.googlecode.com/svn/trunk/gears/geolocation/wifi_data_provider_win32.cc http://standardpascal.org/basics.pas Thanks. ------

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.335 s.