Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Request : Anchor position #41

Open
nestor013 opened this issue Jan 15, 2025 · 0 comments
Open

Question/Request : Anchor position #41

nestor013 opened this issue Jan 15, 2025 · 0 comments

Comments

@nestor013
Copy link

Hello,

First let me thank you for this wonderful tool. I'm using it everywhere... almost...

Now, I've a question/request: Is it possible to get the position of the start column used by cog to output it's text, i.e.: the position of the "/*[[[cog" delimiter. I don't know how to call it, so why not "anchor position" .

I've found no reference to it in the doc's, and I'm a bit too lost in your code to implement it myself :-)

Actually I'm trying to write a simple wrapping-class to customize the outputs in such a way that the global source width is fixed (e.g.: 80 or 120) but also that it will be wrapped onto the next lines with the proper indentation. To achieve this I need to know this anchor point in order to set the proper width of the current line of code. So far it's working bu I have to set the "anchor" manually, which is boring.

Any help would be really appreciated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant