Questions
Tags
Symfony — how can I display the difference between two strings?
Hi All,
is it possible to display the difference between the two lines?
what bundle or there is a feature filter for Twig?
tobish otobrazit diff string, well in Bitbucket...
Twig
Symfony
craig39
asked
April 19th 20 at 12:28
Related questions
2
Why svg is not displayed?
1
Does anyone have an example of creating a document using PHPWord?
3
Different support from the support?
2
How to split large file into many angular files, while remaining in the same class?
1
How to make to function check with the condition $_FILES?
1
How to set the interval of sending messages from the bot?
3
Upwork why my work is not in the search?
3
Rust — another killer c/c++?
More answers about
"Symfony — how can I display the difference between two strings?"
1
answer
Carleton_Mayer
answered on
April 19th 20 at 12:30
Solution
I think it will be not difficult to write a renderer for tviga:
https://github.com/sebastianbergmann/diff
is there any example how to do this?
- craig39
commented on April 19th 20 at 12:33
@craig39
,
get diff (
https://github.com/sebastianbergmann/diff/blob/mas...
)
create a function for tviga and go as you want (
https://twig.symfony.com/doc/3.x/advanced.html#id2
)
- Carleton_Mayer
commented on April 19th 20 at 12:36
@craig39
, or use its output
https://github.com/sebastianbergmann/diff/blob/mas...
- Carleton_Mayer
commented on April 19th 20 at 12:39
Find more questions by tags
Twig
Symfony
get diff ( https://github.com/sebastianbergmann/diff/blob/mas... )
create a function for tviga and go as you want ( https://twig.symfony.com/doc/3.x/advanced.html#id2 ) - Carleton_Mayer commented on April 19th 20 at 12:36