User forums > Help

Detect file EOL

<< < (2/3) > >>

oBFusCATed:

--- Quote from: zach on November 24, 2017, 10:45:36 pm ---
--- Quote from: oBFusCATed on November 24, 2017, 08:53:28 pm ---So what is the exact question?
--- End quote ---
There is only one question in my OP which I think makes the issue very clear.

--- End quote ---
If it was clear, I wouldn't have asked clarifying questions.


--- Quote from: zach on November 24, 2017, 10:45:36 pm ---
--- Quote from: oBFusCATed on November 24, 2017, 08:53:28 pm ---How to make editor-config use auto-eol
--- End quote ---
Exactly.

--- End quote ---
Are you talking about this http://editorconfig.org/ ?


zach:

--- Quote from: sodev on November 25, 2017, 06:36:42 am ---Fix your files! Get rid of that mixed EOL style, causes too many issues,

--- End quote ---
Thanks but I can't modify 60+ files and impose future edits as a project newcomer because my IDE can't handle different EOLs per file.


--- Quote from: sodev on November 25, 2017, 06:36:42 am ---also stick to one whitespace mode, at least per file.

--- End quote ---
Of course, that's the whole point of the discussion. I need consistent spaces/tabs project-wide and consistent EOL per file (not project-wide).


--- Quote from: sodev on November 25, 2017, 06:36:42 am ---Every current rcs converts your files to your current platform style or lets you set a fixed style.

--- End quote ---
Maybe if I set them up that way but not by default if you mean that (prominent example: Git -> core.autocrlf). Apart from that I do not want this (see above).

zach:

--- Quote from: oBFusCATed on November 25, 2017, 09:19:44 am ---Are you talking about this http://editorconfig.org/ ?

--- End quote ---

I'm talking about the CB EditorConfig plugin ???
(libEditorConfig.so)
Installed either by default or coming with contrib, accessed by
--- Quote from: zach on November 24, 2017, 06:20:33 pm ---/Project/Properties/EditorConfig options/

--- End quote ---

At least I found the source so I can (hopefully) fix it myself:
https://github.com/editorconfig/editorconfig-codeblocks

oBFusCATed:
The source code is in the src/plugins/contrib/EditorConfig folder.

The problem is that the "editor config" spec doesn't know about this auto-eol mode as far as I can see.
If you have an editor config you're either setting dos or unix style for eol.
So you need to make contributions to "editor config" first and then you could do changes to codeblocks' integration of editor config.

I could have skipped this from the editor config docs, because I've not read it in detail.

zach:

--- Quote from: oBFusCATed on November 25, 2017, 02:16:23 pm ---The source code is in the src/plugins/contrib/EditorConfig folder.

--- End quote ---
That was helpful, thanks.


--- Quote from: oBFusCATed on November 25, 2017, 02:16:23 pm ---The problem is that the "editor config" spec doesn't know about this auto-eol mode as far as I can see.
If you have an editor config you're either setting dos or unix style for eol.
So you need to make contributions to "editor config" first and then you could do changes to codeblocks' integration of editor config.

--- End quote ---
In that case an option to just respect the global setting (/Settings/Editor/) could make sense. I have a feeling that the behavior described in post 4 may be related to a clash between project and global settings.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version