LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2019, 04:55 PM   #1
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
How do I get Mousepad to do syntax colouring?


I wanted to add mousepad to my Slackware 14.2 system, so I got it from SlackBuilds.org.
Mousepad requires gtksourceview3, so I got that, too.
Gtksourceview3, in turn, requires glade, so I got that as well.

Then I built glade, which gave me ‘glade-3.18.3-x86_64-1_SBo.tgz’.
I used ‘installpkg’ to install the package, without any errors.

Next, I built gtksourceview3, which gave me ‘gtksourceview3-3.18.4-x86_64-1_SBo.tgz’.
Again, I used ‘installpkg’ to install the package, without any errors.

And finally, I built mousepad, which gave me ‘mousepad-0.4.1-x86_64-1_SBo.tgz’.
Once more, I used ‘installpkg’ to install the package, without any errors.

Mousepad works fine, except that it doesn’t do syntax colouring. It does correctly identify the file type—so, e.g., when I load a ‘*.c’ file, then “Document”“Filetype”“Source”“C” is selected. The ‘*.lang’ files (including ‘c.lang’) are present in the ‘/usr/share/gtksourceview-3.0/language-specs’ directory.

I went looking for some ‘configure’ option that might be needed to make mousepad activate syntax highlighting, but I didn’t find anything that rang a bell.

Does anyone have any idea what I am missing here?
 
Old 01-01-2019, 05:24 PM   #2
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 932

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
Quote:
Originally Posted by luvr View Post
I wanted to add mousepad to my Slackware 14.2 system, so I got it from SlackBuilds.org.
Mousepad requires gtksourceview3, so I got that, too.
Gtksourceview3, in turn, requires glade, so I got that as well.

Then I built glade, which gave me ‘glade-3.18.3-x86_64-1_SBo.tgz’.
I used ‘installpkg’ to install the package, without any errors.

Next, I built [I]gtksourceview3,[/ I] which gave me ‘gtksourceview3-3.18.4-x86_64-1_SBo.tgz’.
Again, I used ‘installpkg’ to install the package, without any errors.

And finally, I built mousepad, which gave me ‘mousepad-0.4.1-x86_64-1_SBo.tgz’.
Once more, I used ‘installpkg’ to install the package, without any errors.
I think you didn't install with sbopkg, it worth a look https://www.sbopkg.org/
It has 'sqg' that builds a queue file with all dependencies for SlackBuilds, then
with a command like 'sbopkg -R -k -i mousepad', sbopkg will ask if you want install
the queue or just the package.

Quote:
Mousepad works fine, except that it doesn’t do syntax colouring. It does correctly identify the file type—so, e.g., when I load a ‘*.c’ file, then “Document”“Filetype”“Source”“C” is selected. The ‘*.lang’ files (including ‘c.lang’) are present in the ‘/usr/share/gtksourceview-3.0/language-specs’ directory.

I went looking for some ‘configure’ option that might be needed to make mousepad activate syntax highlighting, but I didn’t find anything that rang a bell.

Does anyone have any idea what I am missing here?
Hope this helps https://www.linuxquestions.org/quest...ld-4175633151/
 
Old 01-01-2019, 05:40 PM   #3
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Rep: Reputation: 26
https://www.linuxquestions.org/quest...ld-4175633151/
 
Old 01-02-2019, 08:05 AM   #4
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459

Original Poster
Blog Entries: 2

Rep: Reputation: 194Reputation: 194


Turned out that syntax colouring did work after all... Only silly little detail was the Colour scheme (on the “Edit”“Preferences” dialogue) which was set to... “None”. I set it to “Classic” instead, et voilà: syntax colouring instantly showed up.

Quote:
Originally Posted by Paulo2 View Post
Quote:
Originally Posted by Candelabrus View Post
I had seen that thread, but considered it not applicable, since it discussed a different issue, where syntax colouring did visibly work, but the user wanted to add file type “*.SlackBuild” to be handled just like a shell script. Rereading the thread now that I have syntax colouring working, I thought that was a great idea, so now my SlackBuilds are nicely coloured as well.

So, no it didn’t help, but yes, it did help after all.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
colouring ls -al|more johnmtb Linux - Newbie 5 01-04-2009 11:38 PM
Colouring widgets in glade using C sneha hendre Programming 2 10-06-2008 09:12 AM
Colouring things in Linux/Shell Vampirite Linux - General 3 02-19-2006 07:28 AM
Shell Prompts and root ls colouring iantri Slackware 10 09-11-2003 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration