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
Is your feature request related to a problem? Please describe.
I already mentioned in future development#6 (comment)
but i'm not sure if you are seeing it...
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
It's very useful for technical docs, and usage without having to change the source code.
Something like... -> single quote used to be seen as code block in this comment
'```snippet-php
filePath: app/MyClass.php
firstLineQuery: public function myMethod
paddingTop: 4
lastLineQuery: return $something;
paddingBottom: 3
fileNumbers: true
highlightLinesQuery: some text
highlightLinesQuery: another text
'```
Description for inputs:
filePath: relative to base path, using later: base_path('app/MyClass.php')
first line query: public function myMethod
(will find first line in file, with occurence of public function myMethod, and mark its line number)
If an integer, just use that integer as the line
last line query: return $something;
(will find first line in file, with occurence of return $something;, and mark its line number)
If an integer, just use that integer as the line
lastLine > firstLine or throwException
fileNumbers: boolean
use the line numbers from file
paddingTop/paddingBottom: signedInteger
(padding to change first line and last linefor snippet) - useful for not having to place markers in source files
highlightLinesQuery: [some text,another text]
will highlight lines containing some text and another text
Is your feature request related to a problem? Please describe.
I already mentioned in
future development
#6 (comment)but i'm not sure if you are seeing it...
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
It's very useful for technical docs, and usage without having to change the source code.
Something like... -> single quote used to be seen as code block in this comment
Description for inputs:
relative to base path
, using later:base_path('app/MyClass.php')
public function myMethod
(will find first line in file, with occurence of
public function myMethod
, and mark its line number)return $something;
(will find first line in file, with occurence of
return $something;
, and mark its line number)boolean
use the line numbers from file
signedInteger
(padding to change first line and last linefor snippet) - useful for not having to place markers in source files
some text
,another text
]will highlight lines containing
some text
andanother text
Additional context
Similar to something I've done here
I already checked prism.js, all this is possible easily, check this plugin https://prismjs.com/plugins/line-numbers/
What do you think?
I will do it for me, but checking if we have alignment, maybe for another PR? 😄
The text was updated successfully, but these errors were encountered: