Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 4:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: automate html code insertion
PostPosted: May 7th, 2014, 7:53 am 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
I need to add extra html parts to all exported HTML files. Can you recommend me some free program/script which could automate this work?

I need to add following parts:
- disable text select:
Code:
<style type="text/css">tspan{-webkit-user-select: none;  /* Chrome all / Safari all */-moz-user-select: none;/* Firefox all */-ms-user-select: none; /* IE 10+ */}</style>

- enable iPad full screen:
Code:
<meta name="apple-mobile-web-app-capable" content="yes">


Adding information to one html file is ok but not for 120 :-o.

PS: would be nice to have a field for adding additional css/meta before the publication export


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: automate html code insertion
PostPosted: May 7th, 2014, 11:57 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
If you use Sublime Text as your code editor this is easy. Just right click the project folder and do find and replace.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: automate html code insertion
PostPosted: May 7th, 2014, 12:51 pm 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
You gave me an idea how to do it with Notepad++ (free) using a Save session and Recorded macro with find&replace function. Sublime editor looks good - I've checked it before because it has been mention here few times but it is not for free...

Thanks.
Ota


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: automate html code insertion
PostPosted: May 7th, 2014, 1:29 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
If your using Notepad++, there is a find in files option - which appears to be the same as the Sublime feature.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group