Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default support for LESS files (quick fix) #1626

Open
BarbzYHOOL opened this issue Oct 4, 2017 · 6 comments
Open

Add default support for LESS files (quick fix) #1626

BarbzYHOOL opened this issue Oct 4, 2017 · 6 comments
Labels

Comments

@BarbzYHOOL
Copy link

BarbzYHOOL commented Oct 4, 2017

To read LESS files by default:

In ~/.config/geany/filetype_extensions.conf this could be added by default:
CSS=*.css;*.less;

In ~/.config/geany/filedefs/filetypes.css this could be added by default:

[lexer_properties]
lexer.css.less.language=1
@RossosHEX
Copy link

Heya!
I am trying to stylize SASS/SCSS *.scss files in Geany.

Adding
CSS=*.css;*.scss;*.less;
In filetype_extensions.conf helped with applying *.CSS styling to the *.scss files.

However by adding
[lexer_properties]
lexer.css.less.language=1
In filetypes.css the styling for all *.css *.scss is gone.

Removing the said lexer from filetypes.css brings the default CSS styling back.

Any insights on why this is happening?

P.S.
I also tried
[lexer_properties]
lexer.css.scss.language=1
and
[lexer_properties]
lexer.css.less.language=1
lexer.css.scss.language=1
to no avail.

@elextr
Copy link
Member

elextr commented Oct 20, 2017

Please provide the version of Geany, with recent GIT version, adding

[lexer_properties]
lexer.css.scss.language=1

to my filetypes.css works for me, at least it highlights stuff like @include and @mixin in the examples I copied from the SASS site (since I don't know the language).

@RossosHEX
Copy link

Geany 1.23.1
"Traeda" (built on or after May 19 2013)
I've installed geany from repositories using apt-get install geany
OS is Ubuntu 14.04 LTS 32-bit

@elextr
Copy link
Member

elextr commented Oct 20, 2017

Well, thats way out of date, there is not much we can do with that. Have a look at https://launchpad.net/~geany-dev/+archive/ubuntu/ppa and see if there is a newer version that will run on your OS version.

@RossosHEX
Copy link

Woo! Thanks for the repository, much appreciated.

@elextr
Copy link
Member

elextr commented Oct 20, 2017 via email

@techee techee added the filetype label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants