Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Currently, the book we have here, is in one big long file from start to finish and we need to split that down, to make it easier for the device. So, we can do that in a couple of different ways. In fact, if I come down to the beginning of A Study in Scarlet, just here, and click just before that. I can then go to the Edit menu and choose Split at Cursor. You see that now generates a separate file, like so.
I can also browse through the book and insert split markers. So, we go to the beginning of part one. Just here for example. I can go to the insert menu and choose split marker. It even has a shortcut. Notice that what that does is it puts a line there. I'm going to switch to the code view by clicking on the chevrons here and let's just have a look at what that actually does. If we come down to here, you can see it puts a horizontal rule HTML element in with the class schedule split marker.
So I'm actually going to copy that because that will come in really useful in just a moment. So I'll switch back to the book view like so. If I had worked my way thorough and put those split markers in, I could then go to the edit menu and choose split at markers from there and you see it does exactly that. So I'm just going to double click on this third file now to open this one up like so and I'm going to use find and replace to do the job for me.
The structure inside of this is predominantly made with H1 elements. If I switch over to code view, you'll see the h1 there for Part 1 and just a little way down, you see the h1 for part one, chapter one inside of there as well. So I'm going to bring in Find and Replace Command F or Control F, or if you wanted to go to the search menu at the top, you'll find find change in there. So what I'm going to ask this to do is I'm going to ask it to find the beginning of any page one tag.
Then I'm going to get it to replace it, this is where I'm going to paste in that HRClassSigil split marker, just there, and then I'm going to type the beginning of the H1 tag again, with a space on the end, just there. So that will replace the beginning of the H1 tag with this extra piece of markup. I need to do it just across this file so I'm going to choose the current file from the mode selectors which is there and it even highlights in a fantastic huge tool tip there where it's going to search like so and so I'm just going to check this.
I'm going to click find first. It finds the next instance which is just great and then I'm going to choose Replace All so just looking at that now, you can see that in any h1, there's an hr being placed before it. And so now I can go to the Edit menu and choose Split At Markers, and then it generates me all of the files I need. So if I just go into here like so it's just one place in it so I just close the fine change dialogue down at the very end here where this doesn't have H1's for the publication information so I'm just going to click there and then go edit, split, at cursor just to drop that across into its own file.
There you are. That's how we can split files apart, inside of Sigel.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 42580 Viewers
119 Video lessons · 53959 Viewers
65 Video lessons · 14269 Viewers
113 Video lessons · 82797 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.