Hi,
Recently, I got questions about the way to use LESS as part of HANA Cloud Portal:
This month, HANA Cloud Portal moved from styling using CSS to leaner styling using LESS. When you design your site, you define only the values for predefined set of LESS parameters, for example - site font color, site background image and others. To keep version compatibility, we keep support CSS formatting, but this isn't the best practice anymore and might be deprecated in the future.
LESS (Leaner CSS) is a dynamic stylesheet language. It is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax. LESS is open source. The indented syntax of LESS is a nested metalanguage. as valid CSS is valid LESS code with the same semantics. LESS provides the following mechanisms: variables, nesting, mixins, operators and functions; the main difference between LESS and other CSS pre-compilers being that LESS allows real-time compilation via LESS.js by the browser. LESS can run on the client-side and server-side,or can be compiled into plain CSS.
The compilation is done as part of HANA Cloud Portal code, means - you upload single LESS file and behind the scene we compile it into CSS format.
Full documentation is here - https://help.hana.ondemand.com/cloud_portal/frameset.htm?cf8a8f30977c4f8885144dc566015323.html
Once you saved the <filename>.LESS file in your desktop, you can open it with Notepad++.
However, I guess that you'd like to see the parameters highlighted (just like you got used to do with CSS).
So this is how you do that -
1. Download the attached LESS.XML file
2. Open Notepad++ > language menu > define your language
3. Click on "Import"
4. Browse for the XML file that you have downloaded in step 1.
5. Restart the notpad++ and open any LESS file
6. Now, go to languages > and select the last entry:
Now, you can easily edit your LESS file, since everything is highlighted.
Please contact me for any related issue.
Now - design beautiful sites on top of HANA Cloud Portal :smile:
Inbal Sabag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
24 | |
21 | |
13 | |
9 | |
9 | |
9 | |
9 | |
8 | |
8 |