Is it possible to enable the "visual line warp" for some file types only?
I would like to have line wrapped lines for text types like Markdown enabled. For programming languages it should be disabled.
Thanks.
On 30 January 2013 00:10, Joerg Desch jd.vvd@web.de wrote:
Is it possible to enable the "visual line warp" for some file types only?
No, afraid not, wrapping is per file, not per filetype.
Cheers Lex
I would like to have line wrapped lines for text types like Markdown enabled. For programming languages it should be disabled.
Thanks.
Email: Joerg Desch <jd DOT vvd AT web DOT de> _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Wed, 30 Jan 2013 18:58:46 +1100 Lex Trotman elextr@gmail.com wrote:
On 30 January 2013 00:10, Joerg Desch jd.vvd@web.de wrote:
Is it possible to enable the "visual line warp" for some file types only?
No, afraid not, wrapping is per file, not per filetype.
I don't know the scripting API, but would it be possible to use a "on load" LUA script to switch the "visual line warp" depending on the filename?
On 30 January 2013 20:04, Joerg Desch jd.vvd@web.de wrote:
On Wed, 30 Jan 2013 18:58:46 +1100 Lex Trotman elextr@gmail.com wrote:
On 30 January 2013 00:10, Joerg Desch jd.vvd@web.de wrote:
Is it possible to enable the "visual line warp" for some file types only?
No, afraid not, wrapping is per file, not per filetype.
I don't know the scripting API, but would it be possible to use a "on load" LUA script to switch the "visual line warp" depending on the filename?
I'm not an expert on the lua plugin, but it seems possible.
Cheers Lex
-- Email: Joerg Desch <jd DOT vvd AT web DOT de> _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
于 2013年01月30日 18:38, Lex Trotman 写道:
On 30 January 2013 20:04, Joerg Desch jd.vvd@web.de wrote:
On Wed, 30 Jan 2013 18:58:46 +1100 Lex Trotman elextr@gmail.com wrote:
On 30 January 2013 00:10, Joerg Desch jd.vvd@web.de wrote:
Is it possible to enable the "visual line warp" for some file types only?
No, afraid not, wrapping is per file, not per filetype.
I don't know the scripting API, but would it be possible to use a "on load" LUA script to switch the "visual line warp" depending on the filename?
I'm not an expert on the lua plugin, but it seems possible.
Cheers Lex
-- Email: Joerg Desch <jd DOT vvd AT web DOT de> _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Try to wrap by hand, "visual line wrap" causes problems in some way.
Coleman 13.01
On Wed, 30 Jan 2013 18:53:57 +0800 coleman omegacoleman@gmail.com wrote:
Try to wrap by hand, "visual line wrap" causes problems in some way.
I can't do an "hard warp" because the Markdown file should be edited with "Ueberwriter" to. This application can't handle paragraphs with hard wraps.
于 2013年01月30日 19:02, Joerg Desch 写道:
On Wed, 30 Jan 2013 18:53:57 +0800 coleman omegacoleman@gmail.com wrote:
Try to wrap by hand, "visual line wrap" causes problems in some way.
I can't do an "hard warp" because the Markdown file should be edited with "Ueberwriter" to. This application can't handle paragraphs with hard wraps.
I means -- "", can't you add this to the place you ant to wrap in a long line, and then start a new line?
于 2013年01月30日 19:02, Joerg Desch 写道:
On Wed, 30 Jan 2013 18:53:57 +0800 coleman omegacoleman@gmail.com wrote:
Try to wrap by hand, "visual line wrap" causes problems in some way.
I can't do an "hard warp" because the Markdown file should be edited with "Ueberwriter" to. This application can't handle paragraphs with hard wraps.
I means -- "", can't you add this to the place you want to wrap in a long line, and then start a new line?
On Wed, 30 Jan 2013 19:18:26 +0800 coleman omegacoleman@gmail.com wrote:
I means -- "", can't you add this to the place you want to wrap in a long line, and then start a new line?
The "" is used in "programming languages"! In my case, I have a simple text file which have a LF as "end of paragraph". Adding "" would lead to "" in the resulting output.
As Lex already mentioned. I don't want to have hard wraps. I just don't want to scroll horizontally. So source code should be displayed without wrapped lines, and text files with wraps. ;-)
于 2013年01月30日 21:41, Joerg Desch 写道:
On Wed, 30 Jan 2013 19:18:26 +0800 coleman omegacoleman@gmail.com wrote:
I means -- "", can't you add this to the place you want to wrap in a long line, and then start a new line?
The "" is used in "programming languages"! In my case, I have a simple text file which have a LF as "end of paragraph". Adding "" would lead to "" in the resulting output.
As Lex already mentioned. I don't want to have hard wraps. I just don't want to scroll horizontally. So source code should be displayed without wrapped lines, and text files with wraps. ;-)
Oh! Sorry, sorry for misunderstanding your question.:-[ For outputting, it's surely all okay to have big lines.
[...]
Try to wrap by hand, "visual line wrap" causes problems in some way
To make sure we are talking about the same thing.
Geany does not use the term "visual" line wrapping, just line wrapping. To be clear this simply *displays* long lines wrapped, it does not touch the file. It is not possible to "wrap" by hand. Line breaking adds "end of line" to the file and is not a good idea for programming language code, but is great for text documentation. Line breaking you can do manually.
I am presuming the OP meant line wrapping which should not cause any problems. If it does please raise a bug report.
Cheers Lex
Coleman 13.01
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
于 2013年01月30日 19:02, Lex Trotman 写道:
[...]
Try to wrap by hand, "visual line wrap" causes problems in some way
To make sure we are talking about the same thing.
Geany does not use the term "visual" line wrapping, just line wrapping. To be clear this simply *displays* long lines wrapped, it does not touch the file. It is not possible to "wrap" by hand. Line breaking adds "end of line" to the file and is not a good idea for programming language code, but is great for text documentation. Line breaking you can do manually.
I am presuming the OP meant line wrapping which should not cause any problems. If it does please raise a bug report.
Cheers Lex
Coleman 13.01
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Oh I means, I used to simply avoid long lines in files by adding "" and start a new line. I don't know if LUA can do this -- most of languages can! Displaying wrapped lines may cause problems, but there aren't any bugs. When I write Python I once had a line with 80 chars, and I cannot find out there is a line breaking or a wrapping at the end of it. And the error report seemed to be very strange.
Coleman
13.01
On Wed, 30 Jan 2013 21:38:08 +1100 Lex Trotman elextr@gmail.com wrote:
I'm not an expert on the lua plugin, but it seems possible.
Thanks. So I will start "investigating" the API and give LUA a try. ;-)
Hi, how i use HTML Syntaxhighlight in tpl files? cant find the Option to set up.
greatz
Le 30/01/2013 17:10, Jay Letter a écrit :
Hi, how i use HTML Syntaxhighlight in tpl files? cant find the Option to set up.
You can, change it manually in *Document->Set Filetype* or configure Geany for it to recognize .tpl files as HTML by editing the filetype_extension.conf configuration file (see http://www.geany.org/manual/#filetype-extensions)
Regards, Colomban