Finding and replacing text with PHPWord https://stackoverflow.com/a/20220205 PHPWord is only intented to create docx files. Anyhow, a docx file is simply a collection of xml files in a zip container. In general what you need to do is: Rename xxx.docx to xxx.zip Unzip to a temporary folder In temporary_folder_from_unzipped_doc/word read in document.xml which contains all…
Month: November 2021
Preloader with Materialize https://materializecss.com/preloader.html HTML <div class="progress"> <div class="indeterminate"></div> </div>
https://materializecss.com/modals.html HTML <!– Modal Trigger –> <a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a> <!– Modal Structure –> <div id="modal1" class="modal"> <div class="modal-content"> <h4>Modal Header</h4> <p>A bunch of text</p> </div> <div class="modal-footer"> <a href="#!" class="modal-close waves-effect waves-green btn-flat">Agree</a> </div> </div> JS document.addEventListener('DOMContentLoaded', function() { var elems = document.querySelectorAll('.modal'); var instances = M.Modal.init(elems, options); }); // Or with…
Basic Example https://materializecss.com/cards.html <div class="row"> <div class="col s12 m6"> <div class="card blue-grey darken-1"> <div class="card-content white-text"> <span class="card-title">Card Title</span> <p>I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.</p> </div> <div class="card-action"> <a href="#">This is a link</a> <a href="#">This…
Configuring Google Documentation Keyboad Short Cuts Ctrl+ Shift + F : Search all (Choose ‘Scope’ properly, eg: current File) Ctrl E : view list of recently openerd files Ctrl + Shift E : view recently added/edited codes Ctrl + Shift + F12 : Hide all tool windows(view code window alone) Ctrl + F12 : View…
Commonly used VS Code Shortcuts Single Line Comment : Ctrl + / Block Comment : Shift + Alt + A Duplicate line : Shift + Alt + Down Arrow
Sample .gitignore command Some times you may want to create a .gitignore before to create git echo projectBase > .gitignore if there are multiple files/folders echo projectBase > .gitignore & echo otherFolder >> .gitignore Add Existing Project to Already created Remote Git Repository Prerequisites Install Git https://git-scm.com/downloads Install TortoiseGit(Optional) https://tortoisegit.org/download/ Create an account in Remote…
*** Use "WP Githuber MD"(https://wordpress.org/plugins/wp-githuber-md/) plugin to edit markdown in WordPress # Heading level 1 Heading level 1 <https://www.markdownguide.org/basic-syntax/> https://www.markdownguide.org/basic-syntax/ I really like using Markdown. I really like using Markdown. I think I'll use it to format all of my documents from now on. I think I’ll use it to format all of my documents…