Hi,
Slackware 14.1 x86_64
Openbox 3.5.2
gtk+3-3.8.2
nvidia gpu - nvidia-driver-340.58
xorg-server-1.14.3
bash-4.2.05
rxvt-unicode-9.20
zsh-5.0.2
xterm-297
I noticed when I'm compiling something, and at the terminal it gives output as example of options, and these are lined up in columns like the example below;
prefix: /usr
compiler: gcc -std=gnu99
cflags: -O2 -fPIC
ldflags:
Adjustment methods: DRM: yes RANDR: yes VidMode: yes WinGDI: no
When I copy and paste output like this into geany, and then open up geany to look at it, the columns in geany are not lined up.
I'm not sure what's causing this...
Hmm
Please see the attached screen shots, one with nano showing the columns lines up correctly and the other of geany with them moved around.
Hi,
Forgot to mention, in the screen shots, it's not the words on the left like
prefix:
compiler:
cflags:
The words; gcc -std=gnu99 and the yes and no to the right are the ones that are shifted...
Also I mentioned above showing an example I pasted for the output, please disregard that, the output I pasted did not appear correctly. I was trying to show an example of it all lined up, intstead it actually looks more like how geany displays it.
Is there a way for me to fix geany, so when I copy out from a terminal into geany, geany will display it correctly, like this output as an example?
Last edit: SourceBugs 2015-01-06
This looks like incorrect tab widths that's all. Going to Document->Indent Width and setting it to 8 should do the trick. Or set the indentation type to Tabs and Spaces in Document->Indent Type.
You can also change the default in the preferences.
Bottom line is Geany's default indentation width is 4, which means it has tab stops at columns multiple of 4. The output you pasted is most probably aligned for a tab width of 8, hence the misalignment.
I did; Document->Indent Width and setting it to 8
The indentation type was set to Tabs by default...
THANKS :)
Last edit: SourceBugs 2015-01-07
I closeed geany and it sets back to 4 for the Ident Width, ahh but I realized it's in the preferences to adjust if you want to make it permanent. You forgot to tell me that too, LOL, j/kiddin :)
thanks
Last edit: SourceBugs 2015-01-07
The defaults are set in menu->edit->preferences->editor->indentation
On 7 January 2015 at 18:52, SourceBugs sourcebuggy@users.sf.net wrote:
Related
Bugs: #1076
Yes menu->edit->preferences->editor->indentation is what I meant before...
Thanks again...