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
;; (defvar outline-minor-mode-prefix "\M-#")
;; Above needs to be set using Customize so that it is set BEFORE the
;; `outline' (not `outshine') library is loaded.
(require 'outshine)
(add-hook 'outline-minor-mode-hook #'outshine-hook-function)
(dolist (hook '(verilog-mode-hook))
(add-hook hook #'outline-minor-mode))
Use of outshine in verilog/systemverilog code
And below is how you use it in code:
The only requirement is that you need @// * Heading@ at the very beginning of the line, without any space or indentation before it.
Below snippet shows the example use of @// * Heading1@ and @// ** Heading2@. Similarly, you can also have @// *** Heading3@ and so on.
This allows quick navigation and overview of the code
!Clipboard01.png!
Problem with indentation
As shown in this snippet, @// * Heading1@, @// ** Heading2@, etc need to stick to the very left, without any space before them.
Auto-indentation will indent the @// ** Task 1 definition@ below too and that will break the features that @outline-mode@ and @outshine@ have to offer.
Author Name: Kaushal Modi
Original Redmine Issue: 885 from https://www.veripool.org
Hi,
I use the "outshine":https://github.com/tj64/outshine package to organize my verilog/systemverilog code blocks.
outshine setup
Below is the setup required for @outshine@.
Use of outshine in verilog/systemverilog code
And below is how you use it in code:
The only requirement is that you need @// * Heading@ at the very beginning of the line, without any space or indentation before it.
Below snippet shows the example use of @// * Heading1@ and @// ** Heading2@. Similarly, you can also have @// *** Heading3@ and so on.
This allows quick navigation and overview of the code
!Clipboard01.png!
Problem with indentation
As shown in this snippet, @// * Heading1@, @// ** Heading2@, etc need to stick to the very left, without any space before them.
Auto-indentation will indent the @// ** Task 1 definition@ below too and that will break the features that @outline-mode@ and @outshine@ have to offer.
So coming to the feature request ...
*Can the indentation algorithm be configured that it does not try to indent the lines that begin with '@// @' ?
Thanks!
The text was updated successfully, but these errors were encountered: