You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we tried the git4c plugin and came across one issue. When we try to display code from a single file, we weren't able to use a special tag inside the file, but only the line number. So in the end when the file is altered by a developer and the number of lines of the section we want to display is growing beyond the limit we set in the macro, the line number has to be altered in the macro on the confluence page as well. It would be much easier to use a specially configured tag, so that the line of code can grew inside the tag and will be displayed despite of that fact.
So the idea is something like that:
adding a new "show option" which should be called "tag" to the macro and two new choosable fields like "start tag" and "end tag" where the tags can be defined.
That would be a great feature to the plugin.
The text was updated successfully, but these errors were encountered:
Hi,
thank you for reporting the issue. Good Idea.
Question: closing and opening tags seem to be something you would force the developer to include. I would add something like a regex as well and an option to render the closing line or not. Imaging you have a method, you want to show. In every programming language a method has a name, but the syntax is different (python has no closing brackets, java has). When you provide the regex including the method name and as closing with a regex of the next method (or syntax for beginning a new method) it would be more flexible and wouldn't force any developer to add something just to include it in git4c macro.
What is your preference?
in my opion, a regex would be fine too, since we just can use a tag as exact match in regex. So, if regex would be the more smarter way to add the new functionality in a more flexible way, then I appreciate that.
Hi,
we tried the git4c plugin and came across one issue. When we try to display code from a single file, we weren't able to use a special tag inside the file, but only the line number. So in the end when the file is altered by a developer and the number of lines of the section we want to display is growing beyond the limit we set in the macro, the line number has to be altered in the macro on the confluence page as well. It would be much easier to use a specially configured tag, so that the line of code can grew inside the tag and will be displayed despite of that fact.
So the idea is something like that:
adding a new "show option" which should be called "tag" to the macro and two new choosable fields like "start tag" and "end tag" where the tags can be defined.
That would be a great feature to the plugin.
The text was updated successfully, but these errors were encountered: