![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: none
|
how to edit source code of .htm doc?
I have been reading the XPATH tutorial in the caliber User Manual because I want to put some chapter headline tags into an .htm document that I am converting into an ebook. The instructions in the tutorial for how to write the tags are clear enough, but the tutorial does not explain how to actually get at the source code of the .htm document. I guess the assumption is that if you are fiddling with code, you already know that, but I am relatively new to this.
Can anyone advise? The .htm doc was created from a Word 2004 doc (in Mac) using the "save as" function. Here's the tutorial: http://manual.calibre-ebook.com/xpat...xpath-tutorial |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
A .htm file is a text file so can be edited with any editor capable of handling text files.
Having said that there are lots of editors around that are HTML 'aware' and give you special support for HTML editing. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: none
|
Quote:
I did more research last night, and it seems you need to use a script editor to gain access to the actual .html code behind the document. |
|
![]() |
![]() |
![]() |
#4 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Good Luck. |
||
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
#7 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() Edit: I just tried it again and Sigil does great opening html and saving it as ePub. Of course this is one editor that doesn't reveal the code until you switch to code view. Last edited by DoctorOhh; 07-07-2011 at 10:45 AM. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: none
|
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Under TextEdit Preferences, the first option under "When opening a file": you want to check Ignore rich text commands in HTML files. Check that option, then quit TextEdit. You can also do this by manually selecting File --> Open..., choosing the file, and also selecting the option in the Open dialog window of "Ignore rich text commands", |
|
![]() |
![]() |
![]() |
#11 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 12:26 PM |
Source Code Reading | Jamp | Workshop | 3 | 07-16-2009 03:20 PM |
Source code available | AlfonsVH | HanLin eBook | 3 | 01-03-2009 02:30 PM |
pdf/fb2/doc/htm for Explay txt.book Software | bbhk888 | Reading and Management | 3 | 10-21-2008 05:21 PM |
source code?? | joblack | iRex | 1 | 11-01-2006 12:16 PM |