E
E
Endru2015-05-02 01:51:40
css
Endru, 2015-05-02 01:51:40

What do you use to store code in layout?

Little by little different code fragments start to accumulate.
Is there any way to store them and group them. For example, like on codepen but with the ability to group them.
Those. for example, code for a slider containing JS, CSS, HTML, something in a group, for example Sliders, add code for HTML, CSS, JS and so that it is immediately executed and displayed side by side.
And if there are such local programs, then it would be generally super.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
E
evnuh, 2015-05-02
@evnuh

Locally, this is more of a question for the IDE and snippets. IDEs understand what language the file is in and offer the corresponding snippets, so you can duplicate a snippet with the same name, for example, "slider" for three languages, and insert all these three codes into three corresponding files - js, css, html.

S
sim3x, 2015-05-02
@sim3x

this is what bem-tools / lego
does but no one bothers
with the maximum that is needed for everyday layout - live teplates
and copy-paste from SO is usually used

P
Pavel, 2015-05-02
@mrusklon

I myself am looking for such a program, it is important for me that the code can be stored and used offline. Gist works for me, but its web interface is terrible. And under Windows there is no software, alas

N
Nazar Mokrinsky, 2015-05-02
@nazarpc

Maybe it's time for you to start using and reusing web components?

S
Sanes, 2015-05-02
@Sanes

Like include? Then any local server will go with PHP. I recently tried jade, but I didn't like the syntax.

A
Alexey Nikolaev, 2015-05-02
@Heian

Not at all. What for? I created a start-kit for myself with all the tools and a starter set of code. Sometimes I update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question