You are not logged in.

#1 2024-07-31 19:55:19

Pingvin
Member
Registered: 2024-01-10
Posts: 11

How to indent only the first line of a paragraph in Geany?

I like using Geany as a text editor. There is only one drawback: you cannot indent only the first line of a paragraph. Perhaps there is some way or plugin to add indentation only for the first line of a paragraph?


According to probability theory, there are joys after troubles

Offline

#2 2024-08-01 02:31:21

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: How to indent only the first line of a paragraph in Geany?

Manually, by using the Ctrl-I shortcut (listed here under "Editing")...

https://wiki.geany.org/howtos/sorted_keyboard_shortcuts

More info here under "Indentation" and Auto-Indentation"...

https://www.geany.org/manual/0.13/


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#3 2024-08-01 09:44:29

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: How to indent only the first line of a paragraph in Geany?

Try perltidy (sudo apt install perltidy)

perltidy <input >output --indent-only

man perltidy (but you do not need it)


...Welcome to the family...

Offline

#4 2024-08-01 12:53:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: How to indent only the first line of a paragraph in Geany?

The question is probably: how to view the indented block of text of filetype 'common', where paragraph is single line wrapped. If that is the case then in

~/.config/geany/filedefs/filetypes.common

add

line_wrap_indent=0;0;

Answer found here
https://forum.tinycorelinux.net/index.p … 208.0.html

Scrot
https://images2.imgbox.com/a8/48/q3pLbCyb_o.png

Offline

#5 2024-08-05 19:07:48

Pingvin
Member
Registered: 2024-01-10
Posts: 11

Re: How to indent only the first line of a paragraph in Geany?

Hooray! Thanks to all who responded, especially brontosaurusrex, because by changing line_wrap_indent=0;1; to line_wrap_indent=0;0; in Geany 1.36 on line 86 I got the desired indentation of only the first line of the paragraph.


According to probability theory, there are joys after troubles

Offline

Board footer

Powered by FluxBB