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 support for TSS (titanium style sheets) #122

Closed
m1ga opened this issue Oct 15, 2014 · 10 comments
Closed

Add support for TSS (titanium style sheets) #122

m1ga opened this issue Oct 15, 2014 · 10 comments
Assignees
Milestone

Comments

@m1ga
Copy link

m1ga commented Oct 15, 2014

What would be the best way to include a custom language (TSS, a CSS style language for the app framework Titanium)?

"#btn_start":{
    top:15,
    right:15,
    width:100
}
"#table_word":{
    top: 75,
    bottom:75
}

Is there a way I can say that it would add \n after each , and a \t on each newline between { and } ?

@Glavin001 Glavin001 self-assigned this Oct 17, 2014
@Glavin001 Glavin001 changed the title Add support for a custom language? Add support for TTS (titanium style sheets) Oct 17, 2014
@Glavin001
Copy link
Owner

I am not familiar with TSS, and in my research have not found an available beautifier I could add support for.

Is there a way I can say that it would add \n after each , and a \t on each newline between { and } ?

If you find a beautifier for TSS -- such as a Command-Line Interface beautifier, that could be installed, or one written in Node.js preferably -- then I can add support for it. If said third-party beautifier has configuration options for what you want, then absolutely it could be done. Just need to find an existing third-party beautifier with TSS support.

@m1ga
Copy link
Author

m1ga commented Oct 18, 2014

thanks. I thought there is perhaps a reg.expr. function in beautifier where I can set some rules and it would work. But I'll have a look around if there is a nodejs package

@Glavin001
Copy link
Owner

@prettydiff are we able to support this?

@prettydiff
Copy link
Collaborator

Assign this bug to me. It will have to be an enhancement. It looks simple, but its not. Notice that the property separators are commas instead of semicolons. I can easily enhance support for this, but I scared about regression. I just need to extra time to test it properly.

Is there a way I can say that it would add \n after each , and a \t on each newline between { and }

I am not completely clear on this. It sounds like "Allman" style braces instead of the more common "K&R" style braces. I have an option for this on the Pretty Diff tool for JavaScript only. If @m1ga could go to http://prettydiff.com/ and beautify some JavaScript with the "Allman (ANSI) style" option checked. Just verify this is what you are looking for in CSS and I will ensure this feature is available to CSS. Just scroll down the page to make the options visible on the Pretty Diff tool.

@Glavin001
Copy link
Owner

Created Issue for you, @prettydiff, at prettydiff/prettydiff#57

@m1ga
Copy link
Author

m1ga commented Mar 15, 2015

prettydiff/prettydiff#57 is closed! Prettydiff now supports TSS files.

So prettydiff will be included in atom-beautify?

@Glavin001
Copy link
Owner

So the next issue is that Atom Beautify current uses the Grammar for the file as it is detected by Atom. However, I cannot find Atom language support package for TSS.
@m1ga please let me know if there is one, if not, I may need some more time to update for custom Grammars.

@m1ga
Copy link
Author

m1ga commented Mar 16, 2015

I've started https://github.com/m1ga/language-tss a while ago. Not fully complete but it will apply when using tss files

@Glavin001 Glavin001 changed the title Add support for TTS (titanium style sheets) Add support for TSS (titanium style sheets) Apr 12, 2015
@Glavin001
Copy link
Owner

Published to v0.24.0

Be sure to install https://github.com/m1ga/language-tss to allow Atom to detect TSS.

@m1ga
Copy link
Author

m1ga commented Apr 12, 2015

👍 awesome! Working like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants