diff --git a/codepot/src/codepot/language/english/common_lang.php b/codepot/src/codepot/language/english/common_lang.php index 07035749..05963d51 100644 --- a/codepot/src/codepot/language/english/common_lang.php +++ b/codepot/src/codepot/language/english/common_lang.php @@ -18,11 +18,13 @@ $lang['Created on'] = 'Created on'; $lang['Date'] = 'Date'; $lang['Delete'] = 'Delete'; $lang['Description'] = 'Description'; +$lang['Destyle'] = 'Destyle'; $lang['Details'] = 'Details'; $lang['Difference'] = 'Diff'; $lang['Directory'] = 'Directory'; $lang['Download'] = 'Download'; $lang['Edit'] = 'Edit'; +$lang['Enstyle'] = 'Enstyle'; $lang['Error'] = 'Error'; $lang['File'] = 'File'; $lang['Files'] = 'Files'; diff --git a/codepot/src/codepot/language/indonesian/common_lang.php b/codepot/src/codepot/language/indonesian/common_lang.php index 2299d4ee..4bce175e 100644 --- a/codepot/src/codepot/language/indonesian/common_lang.php +++ b/codepot/src/codepot/language/indonesian/common_lang.php @@ -16,11 +16,13 @@ $lang['Created on'] = 'Waktu dibuat'; $lang['Date'] = 'Date'; $lang['Delete'] = 'Hapus'; $lang['Description'] = 'Penjelasan'; +$lang['Destyle'] = 'Destyle'; $lang['Details'] = 'Detail'; $lang['Difference'] = 'Beda'; $lang['Directory'] = 'Direktori'; $lang['Download'] = 'Download'; $lang['Edit'] = 'Rubah'; +$lang['Enstyle'] = 'Enstyle'; $lang['Error'] = 'Error'; $lang['File'] = 'File'; $lang['Files'] = 'File'; diff --git a/codepot/src/codepot/language/korean/common_lang.php b/codepot/src/codepot/language/korean/common_lang.php index bc5efc25..bacfb752 100644 --- a/codepot/src/codepot/language/korean/common_lang.php +++ b/codepot/src/codepot/language/korean/common_lang.php @@ -18,11 +18,13 @@ $lang['Created on'] = '최초생성시간'; $lang['Date'] = '날짜'; $lang['Delete'] = '삭제'; $lang['Description'] = '설명'; +$lang['Destyle'] = '모양새제거'; $lang['Details'] = '상세내역'; $lang['Difference'] = '차이점'; $lang['Directory'] = '디렉토리'; $lang['Download'] = '내려받음'; $lang['Edit'] = '수정'; +$lang['Enstyle'] = '모양새내기'; $lang['Error'] = '오류'; $lang['File'] = '파일'; $lang['Files'] = '파일'; diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 4023f7de..44e2ac80 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -48,12 +48,39 @@ $(function () { } }); }); + +function renderCode() +{ + $("#code_file_mainarea_result_raw").html ($("#code_file_mainarea_result_pre").html()) + prettyPrint (); +} + +var showing_raw_code = false; + +function showRawCode() +{ + if (showing_raw_code) + { + + $("#code_file_style_anchor").text("=$this->lang->line('Destyle')?>"); + $("#code_file_mainarea_result_pre").removeClass("prettyprinted"); + prettyPrint(); + } + else + { + $("#code_file_style_anchor").text("=$this->lang->line('Enstyle')?>"); + $("#code_file_mainarea_result_pre").html($("#code_file_mainarea_result_raw").html()); + } + + showing_raw_code = !showing_raw_code; +} +