luciano_f 5 Posted September 24, 2023 Delphi's native formatter can't do this type of formatting, can Gexpert do it ? Example breaks with 32 If Table1.fieldbyName('campo').Asstring = varcampo then With the formatting it looks like this If Table1.fieldbyName('campo'). Asstring = varcampo then But I would like training to stay like this I would only break when there is a space If Table1.fieldbyName('campo').Asstring = varcampo then Share this post Link to post
haentschman 92 Posted September 25, 2023 Hi... Quote But I would like training to stay like this Why? This is not in accordance with the official style guide. https://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi’s_Object_Pascal_Style_Guide I know that you can create your own styles. But do you think about those who get your source code and can hardly read it? 2 Share this post Link to post
Uwe Raabe 2054 Posted September 25, 2023 Can you show the complete code block with real indentation and your Line Break formatter options? Share this post Link to post
luciano_f 5 Posted September 25, 2023 5 hours ago, haentschman said: Hi... Why? This is not in accordance with the official style guide. https://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi’s_Object_Pascal_Style_Guide I know that you can create your own styles. But do you think about those who get your source code and can hardly read it? Can I create my own styles? as ? Is it possible to do what I want? Share this post Link to post
Uwe Raabe 2054 Posted September 25, 2023 52 minutes ago, luciano_f said: Can I create my own styles? Of course you can - just write it down. Note, that a style guide is not applied automatically. The developers must adhere to it when they write code. 54 minutes ago, luciano_f said: Is it possible to do what I want? As we don't know what your are doing in the moment, we cannot say what you need to change to get the desired outcome. Therefore my request above. Share this post Link to post
luciano_f 5 Posted September 25, 2023 1 minute ago, Uwe Raabe said: Of course you can - just write it down. Note, that a style guide is not applied automatically. The developers must adhere to it when they write code. As we don't know what your are doing in the moment, we cannot say what you need to change to get the desired outcome. Therefore my request above. What I want is for the break to only happen when there is a space Example breaks with 32 If Table1.fieldbyName('campo').Asstring = varcampo then After formatting it would be If Table1.fieldbyName('campo').Asstring = varcampo then Share this post Link to post
dummzeuch 1498 Posted September 25, 2023 I don't think that's possible with the currently available options. Share this post Link to post
luciano_f 5 Posted September 25, 2023 4 minutes ago, dummzeuch said: I don't think that's possible with the currently available options. Could have an option to work together with "Wrap Long Lines" so that breaking only happens when there is space it would be very good. Share this post Link to post
Uwe Raabe 2054 Posted September 25, 2023 Seems you are still refusing to give the formatter settings you are using. How do you expect being helped if you don't give us the requested information? Share this post Link to post
luciano_f 5 Posted September 25, 2023 1 hour ago, Uwe Raabe said: Seems you are still refusing to give the formatter settings you are using. How do you expect being helped if you don't give us the requested information? I'm sorry I didn't understand your request Attached is the configuration of Both Formatters DelForExOptions.ini Formatter_Delphi_Native.config Share this post Link to post
luciano_f 5 Posted September 27, 2023 https://sourceforge.net/p/gexperts/feature-requests/177/ Share this post Link to post
dummzeuch 1498 Posted September 28, 2023 7 hours ago, luciano_f said: https://sourceforge.net/p/gexperts/feature-requests/177/ Ok, I think I understood the request now. And I also think that's the way the GExperts formatter works already. It only adds line breaks where there was a space character. Share this post Link to post