<textarea name="text" id="content" class="textareastyle" ><?=$file?> </textarea>
var num = "";
$( '#content' ).select(function(){
num= window.getSelection().toString();//выделенный текст
$.fn.zoomtext = function (c) {
......
$('.textareastyle').zoomtext({increment: "+=1"});