I am using AStyle to format C or cpp source codes. I am just wondering it is possible to set line limitation in the AStyle?
No, it is not, but the author has stated that this will come in a future update.
http://astyle.sourceforge.net/news.html
Related
For a few month I am working with Libreoffice 7.4. I am trying to get a PDF with PDF-version 1.5 (because LaTeX still does not accept 1.6 for input).
I am using a command like this as described in this issue by Mike Kaganski:
soffice --convert-to pdf:writer_pdf_Export:{"SelectPdfVersion":"type":"long","value":"15"}} %1
where %1 is a fully qualified writer document (odt). This produces the correct pdf, but always with PDF-spec 1.6. Changing the value in the command to anything has no effect.
By the way, using the exact syntac as in the link, i.e. 'pdf:writer_pdf ...}}' produces not a *.pdf but a *.'pdf.
What am I doing wrongly? Thanks for any help.
Thanks, K J. Though this is not an answer to my question, it led into the right direction (and thus is even better than an answer). It's certainly true that downgrading any document to a lower version is or might be dangerous.
The problem is, however, that \pdfminorversion only works for PdfTeX and not LuaTeX.
According to the answers found here for LuaTeX (and likely XeTeX, I didn't check), you have to set in the preamble of a project either
\pdfvariable minorversion=6
or
\directlua{pdf.setminorversion(6)}
(the latter is not likely to work with XeTeX).
So I still don't know how to effectively (versus theoretically – if someone knows an answer to this he is still wellcome) downgrade a PDF, but nontheless my actual problem is solved.
Is there a way to have comments in a _CoqProject file?
I'd like to compile only part of a library, without completely removing all the other files from the _CoqProject file.
# is treated as a comment-the-rest-of-the-line symbol.
I think it is not documented as of now (see issue #7647). But the source code and some experiments show that it works.
I need to know how to mark or delete the translations not being use by the project.
Is there a way to do this? I have read about PoEdit, and I can't find anything.
Simple: update the PO file from your source code. That removes unused strings and adds new strings. See the GNU gettext manual (there's a link in the Help menu) for in-depth explanation of gettext concepts like that.
P.S. The name's "Poedit", not "PoEdit".
I have seen that it may be possible to run shell code in a jpg file. Is this true?
I just want to start cmd through a jpg.
Or are there any other extensions where this would be possible?
Thank you!
Yes, it is possible to do what you asked, eventually all file types are just a set of binaries, if you know and control the format, you can basically do anything you want. It is a low level implementation and requires deep knowledge of the format, header and execution type.
For further reading I recommend you this article:
http://archive.cert.uni-stuttgart.de/bugtraq/2004/09/msg00316.html
Is there is code beautifier for less such as http://www.lonniebest.com/formatcss/ for css? I need sort properties in less code by alphabet.
I use CSSComb http://csscomb.com/. This one is a npm module but there are plugins for it. Especially I use it with Sublime Text.
It works with less too although there might me some edge case not (yet) properly handled. But it's good for me.
You can order rules however you want. Just read the docs ;)
You can also use cssbrush. It is based and uses the csscomb under the hood, but include a fix for this bug and also has the ability to remember the files that were previously beautified, so it will only beautify changed files on each run.
Full disclosure, I wrote it.