Thank you to everyone for your support.
Late last week I decided to look at the source of several loaded pages. I
diff'd a couple of the pages and mapped those diffs back to the embperl. This
gave me a better idea of where I needed to focus my attention.
I spent most of last weekend working on my changes. I think the task is
completed.
I think it's fair to say I managed to get inside the head of the original
developer and it ain't pretty 🙂. I eventually realised an anomaly in a code
generated table was due a bug in the code and that a snippet I'd ignored was
the work around.
Thanks again to everyone.
Cheers
Chris
From: Robby Desmond (RTD)
Sent: 14 July 2021 02:33
To: Michael Stevens ; Chuck Zumbrun
Cc: Chris Brown ; embperl@perl.apache.org
Subject: RE: New to Embperl. How do I work with a large convoluted file?
Security Reminder: This is an external email, please use caution clicking links
or opening attachments.
Vim/gVim (and therefore neovim if that's your preference) has at least two
community-supplied Embperl syntax highlighters that properly differentiate the
HTML and the Perl/Perl-ish code inside an Embperl file.
jEdit also has an Embperl mode.
And, of course, those both have plain Perl, CSS, HTML, and JavaScript syntax
modes as well.
One day, I'd like the folks who code the Vim/NeoVim plugins for VSCodium get
them to read Vim syntax files since there's no VSCodium syntax file for
Embperl, and I don't know how to/have the time to learn how to write one. One
can always dream.
Robby Desmond (él | he/him/his)
BiblioVault Operations - Systems Administration
University of Chicago Press
http://www.bibliovault.org/
ph: 773-834-2387
rob...@uchicago.edu
bv-h...@uchicago.edu
De: Michael Stevens
Enviado: lunes, 5 de julio de 2021 5:59
Para: Chuck Zumbrun
Cc: Chris Brown ; embperl@perl.apache.org
Asunto: Re: New to Embperl. How do I work with a large convoluted file?
Its been a long time but I used to get some useful results with mmm-mode in
emacs.
On Mon, 5 Jul 2021 at 11:50, Chuck Zumbrun
mailto:chuck.zumb...@gmail.com>> wrote:
A multi-modal editor that does syntax highlighting for all the different
languages would be really helpful, but I've never found one that works with
everything that's in your file. I use Notepad++ in HTML mode and it at least
does a pretty good job of matching brackets so you can follow the control flow.
If it's not already consistently indented and formatted, I take the time to do
that. That helps unearth the logic and flow.
Good luck!
On Mon, Jul 5, 2021 at 3:32 AM Chris Brown
mailto:cbr...@macquarietelecom.com>> wrote:
Hi,
I need to work on several files that are probably 10+ years old. Apart from
minor changes, they haven't been touched for the past 6 years. The dev is no
longer with the company.
I'm making a non-trivial change and could do with advice on how best to
interpret the code.
The file I'm interested in a file that contains 4700 lines of HTML, embedded
Perl, CSS and JavaScript. What is the best way to deconstruct this file with a
view to understanding how everything hangs together?
Cheers
Chris
--
Michael Stevens
Senior Developer ▪︎ Dianomi
[https://res.cloudinary.com/honeybook/image/upload/q_auto/v1533664170/marketing_site/email-signature/info-icons/Mobile_1_2x.png]
+44 207 802 5530
[https://res.cloudinary.com/honeybook/image/upload/q_auto/v1533664170/marketing_site/email-signature/info-icons/Mail_1_2x.png]
michael.stev...@dianomi.com<mailto:michael.stev...@dianomi.com>
[http://res.cloudinary.com/honeybook/image/upload/q_auto/v1533664169/marketing_site/email-signature/info-icons/Location_1_2x.png]
84 Eccleston Square London, SW1V 1PX
[https://res.cloudinary.com/honeybook/image/upload/v1533664169/marketing_site/email-signature/info-icons/Web_1_2x.png]
www.dianomi.com<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2F%2Fwww.dianomi.com%2F__%3B!!BpyFHLRN4TMTrA!uBeDmy3yAbqn9zoU8gXRc_Cwg0WFWe1xbqG64X1BLr4vrNnT5xvMUMO8rOYkT6xlJ_f-udc%24&data=04%7C01%7Ccbrown%40macquarietelecom.com%7C7c14d14077824b86fc0208d9461beb52%7C4383520a08eb4d6892034214d51688c3%7C0%7C1%7C637617908015238477%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pEjXF9CQTNjEFLwgjrhKLDZTjTFKGOCS3hXA87mFjno%3D&reserved=0>
[https://www.dianomi.com/img/uploads/XyProYpjN2VDGO0yppo88A8.png]
This e-mail is for the sole use of the intended recipient and contains
information that may be privileged and/or confidential. If you are not an
intended recipient, please notify the sender by return e-mail and delete this
e-mail and any attachments. Certain required legal entity disclosures can be
accessed on our website.