LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I get Mousepad to do syntax colouring? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-get-mousepad-to-do-syntax-colouring-4175645354/)

luvr 01-01-2019 04:55 PM

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?

Paulo2 01-01-2019 05:24 PM

Quote:

Originally Posted by luvr (Post 5943635)
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/

Candelabrus 01-01-2019 05:40 PM

https://www.linuxquestions.org/quest...ld-4175633151/

luvr 01-02-2019 08:05 AM

:doh:

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”. :redface: I set it to “Classic” instead, et voilà: syntax colouring instantly showed up.

Quote:

Originally Posted by Paulo2 (Post 5943642)

Quote:

Originally Posted by Candelabrus (Post 5943649)

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. :cool:


All times are GMT -5. The time now is 05:18 PM.